Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 55.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2486, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003575/0.2522, allocations: 2.157 MB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.2537, allocations: 0.6117 MB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002266/0.254, allocations: 4 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.2542, allocations: 19.78 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.2544, allocations: 43.61 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.2548, allocations: 51.83 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002739/0.2551, allocations: 163.2 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.2553, allocations: 61.44 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.2555, allocations: 67.78 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.2557, allocations: 71.62 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.2558, allocations: 16 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.2559, allocations: 20 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.2559, allocations: 35.84 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.54e-05/0.256, allocations: 67.67 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002656/0.2563, allocations: 165.1 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2563, allocations: 0 / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.2563, allocations: 4 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2563, allocations: 0 / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006817/0.257, allocations: 443.2 kB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.2571, allocations: 12.03 kB / 412.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.326e-05/0.2571, allocations: 38.75 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002068/0.2573, allocations: 28.73 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.2577, allocations: 216.1 kB / 413 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.834e-05/0.2577, allocations: 8.609 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.2577, allocations: 12.38 kB / 413 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.258, allocations: 123.6 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2581, allocations: 0 / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.2581, allocations: 11.98 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2581, allocations: 0 / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.2583, allocations: 76.67 kB / 413.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.2593, allocations: 0.6056 MB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.2597, allocations: 86.55 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.467e-05/0.2598, allocations: 32.97 kB / 414 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.2598, allocations: 4 kB / 414 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.2599, allocations: 34.56 kB / 414 MB, free: 12.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.2599, allocations: 0 / 414 MB, free: 12.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007331/0.2606, allocations: 255.3 kB / 414.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.2606, allocations: 55.41 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.2608, allocations: 149.1 kB / 414.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.2608, allocations: 37.64 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.2609, allocations: 116 kB / 414.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.2609, allocations: 27.64 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-05/0.261, allocations: 29.72 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.601e-05/0.2611, allocations: 318.8 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.589e-05/0.2611, allocations: 19.98 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.022e-05/0.2612, allocations: 50.44 kB / 415 MB, free: 10.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.2614, allocations: 70.81 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2614, allocations: 0 / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002788/0.2617, allocations: 146.2 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2617, allocations: 4 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.2617, allocations: 4 kB / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001772/0.2619, allocations: 32.84 kB / 415.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.65e-05/0.2619, allocations: 16.05 kB / 415.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001599/0.2635, allocations: 1.68 MB / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.254e-05/0.2636, allocations: 7.969 kB / 417 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.2637, allocations: 4 kB / 417 MB, free: 8.82 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.2638, allocations: 129.7 kB / 417.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/0.2638, allocations: 11.97 kB / 417.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.457e-05/0.2638, allocations: 16.7 kB / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2638, allocations: 0 / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.2638, allocations: 0 / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2639, allocations: 0 / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002202/0.2641, allocations: 217.7 kB / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.2641, allocations: 4 kB / 417.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.748e-05/0.2641, allocations: 8.031 kB / 417.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001294/0.2643, allocations: 36.83 kB / 417.4 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.2643, allocations: 4 kB / 417.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/0.2655, allocations: 1.677 MB / 419.1 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2655, allocations: 0 / 419.1 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.2658, allocations: 216.2 kB / 419.3 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.702e-05/0.2659, allocations: 85.02 kB / 419.4 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.2659, allocations: 4.25 kB / 419.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.266, allocations: 12 kB / 419.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.2661, allocations: 7.984 kB / 419.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.2661, allocations: 0 / 419.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.581e-05/0.2662, allocations: 126.7 kB / 419.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2662, allocations: 0 / 419.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003492/0.2665, allocations: 40.03 kB / 419.6 MB, free: 6.012 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005464/0.2671, allocations: 0.7482 MB / 420.3 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003728/0.2675, allocations: 186.6 kB / 420.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2675, allocations: 4.125 kB / 420.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.2677, allocations: 162.6 kB / 420.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.268, allocations: 12 kB / 420.7 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.2698, allocations: 1.71 MB / 422.4 MB, free: 3.035 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.2701, allocations: 0.7119 MB / 423.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.883e-05/0.2701, allocations: 4.438 kB / 423.1 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.106e-05/0.2702, allocations: 35.42 kB / 423.1 MB, free: 2.258 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2702, allocations: 0 / 423.1 MB, free: 2.258 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02317/0.2934, allocations: 3.104 MB / 426.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.46, allocations: 4.953 kB / 426.3 MB, free: 15.26 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches