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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001873/0.001873, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002297/0.002297, allocations: 212.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 67.89 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2663, allocations: 53.42 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003474/0.2698, allocations: 2.175 MB / 433.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.2709, allocations: 0.6194 MB / 434 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.102e-05/0.2709, allocations: 0 / 434 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.2711, allocations: 23.78 kB / 434 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.812e-05/0.2712, allocations: 47.56 kB / 434.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.2714, allocations: 51.88 kB / 434.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.2716, allocations: 167.2 kB / 434.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.2717, allocations: 41.66 kB / 434.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.2719, allocations: 71.66 kB / 434.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.272, allocations: 59.77 kB / 434.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.272, allocations: 12 kB / 434.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.515e-05/0.2721, allocations: 28 kB / 434.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.425e-05/0.2721, allocations: 35.78 kB / 434.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.29e-05/0.2722, allocations: 71.66 kB / 434.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.2725, allocations: 171.7 kB / 434.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2725, allocations: 0 / 434.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2725, allocations: 0 / 434.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2725, allocations: 0 / 434.8 MB, free: 3.113 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.0005934/0.2731, allocations: 369.9 kB / 435.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2731, allocations: 8.031 kB / 435.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.2732, allocations: 42.73 kB / 435.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.2733, allocations: 28.83 kB / 435.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.2736, allocations: 162.3 kB / 435.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.2736, allocations: 12.61 kB / 435.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.2736, allocations: 12.38 kB / 435.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.2739, allocations: 119.6 kB / 435.5 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.2739, allocations: 0 / 435.5 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.2739, allocations: 8 kB / 435.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2739, allocations: 0 / 435.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000189/0.2741, allocations: 80.66 kB / 435.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008273/0.2749, allocations: 0.5697 MB / 436.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.2752, allocations: 82.61 kB / 436.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.653e-05/0.2753, allocations: 32.97 kB / 436.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.2753, allocations: 4 kB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.2753, allocations: 34.5 kB / 436.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.2753, allocations: 0 / 436.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000651/0.276, allocations: 182.2 kB / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.276, allocations: 55.41 kB / 436.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.2762, allocations: 161 kB / 436.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.2762, allocations: 25.7 kB / 436.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.504e-05/0.2763, allocations: 120.2 kB / 436.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.2763, allocations: 27.78 kB / 436.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.23e-05/0.2763, allocations: 21.72 kB / 436.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2765, allocations: 322.8 kB / 437.2 MB, free: 464 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.564e-05/0.2765, allocations: 23.98 kB / 437.2 MB, free: 440 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.852e-05/0.2766, allocations: 46.5 kB / 437.3 MB, free: 384 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.2768, allocations: 70.5 kB / 437.3 MB, free: 304 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2768, allocations: 0 / 437.3 MB, free: 304 kB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002917/0.2771, allocations: 134.3 kB / 437.5 MB, free: 160 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.2771, allocations: 8 kB / 437.5 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2771, allocations: 7.922 kB / 437.5 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001779/0.2773, allocations: 32.84 kB / 437.5 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.62e-05/0.2773, allocations: 16.05 kB / 437.5 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/0.279, allocations: 1.59 MB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.949e-05/0.279, allocations: 11.95 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.279, allocations: 0 / 439.1 MB, free: 14.38 MB / 350.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.000114/0.2792, allocations: 125.8 kB / 439.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.212e-05/0.2792, allocations: 12.02 kB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.225e-05/0.2792, allocations: 12.7 kB / 439.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.2792, allocations: 4 kB / 439.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.2792, allocations: 0 / 439.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.2792, allocations: 0 / 439.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.2794, allocations: 184.6 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2794, allocations: 4 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.298e-05/0.2795, allocations: 0 / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001218/0.2796, allocations: 40.81 kB / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.2796, allocations: 11.98 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.281, allocations: 1.578 MB / 441.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.281, allocations: 0 / 441.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003147/0.2814, allocations: 212.2 kB / 441.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.895e-05/0.2814, allocations: 7.953 kB / 441.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.2814, allocations: 4.062 kB / 441.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.966e-05/0.2815, allocations: 11.92 kB / 441.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.2815, allocations: 11.98 kB / 441.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.2815, allocations: 0 / 441.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.218e-05/0.2816, allocations: 114.2 kB / 441.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2816, allocations: 0 / 441.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003394/0.282, allocations: 39.89 kB / 441.5 MB, free: 11.83 MB / 350.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.0006199/0.2826, allocations: 0.7519 MB / 442.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003836/0.283, allocations: 186.5 kB / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.283, allocations: 8.062 kB / 442.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.2832, allocations: 150.7 kB / 442.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.2834, allocations: 15.98 kB / 442.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.2855, allocations: 1.718 MB / 444.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.2858, allocations: 0.708 MB / 445 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.095e-05/0.2859, allocations: 8.422 kB / 445 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.449e-05/0.2859, allocations: 35.42 kB / 445.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2859, allocations: 3.938 kB / 445.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.3195, allocations: 3.157 MB / 448.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.28, allocations: 13.89 kB / 448.2 MB, free: 5.02 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.706507164984941]