Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008763/0.0008763, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009461/0.0009461, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8989/0.8989, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.276e-06/3.276e-06, allocations: 0 / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.705e-05/4.033e-05, allocations: 6.219 kB / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003883/0.003923, allocations: 2.769 MB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.005407, allocations: 0.7363 MB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.005565, allocations: 7.938 kB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001568/0.005722, allocations: 51.5 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.00591, allocations: 111.1 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.006249, allocations: 119.7 kB / 328.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003251/0.006574, allocations: 426.2 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.00676, allocations: 83.67 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.006968, allocations: 231.5 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.007109, allocations: 135.6 kB / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.795e-05/0.007157, allocations: 40 kB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.638e-05/0.007193, allocations: 40 kB / 329.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.955e-05/0.007253, allocations: 83.67 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.007361, allocations: 123.7 kB / 329.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003674/0.007729, allocations: 470.6 kB / 330 MB, free: 10.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.007732, allocations: 0 / 330 MB, free: 10.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.007734, allocations: 3.938 kB / 330 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.269e-06/0.007739, allocations: 0 / 330 MB, free: 10.46 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0008433/0.008582, allocations: 0.6052 MB / 330.6 MB, free: 9.824 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.00862, allocations: 8.031 kB / 330.6 MB, free: 9.816 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.739e-05/0.008668, allocations: 66.72 kB / 330.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.008718, allocations: 36.7 kB / 330.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.009053, allocations: 237.2 kB / 330.9 MB, free: 9.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.009073, allocations: 20.88 kB / 331 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.0091, allocations: 24.38 kB / 331 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.009568, allocations: 382.6 kB / 331.4 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.009579, allocations: 4.125 kB / 331.4 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.009602, allocations: 16.12 kB / 331.4 MB, free: 8.988 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.009608, allocations: 4 kB / 331.4 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.01004, allocations: 285.8 kB / 331.7 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.01122, allocations: 1.031 MB / 332.7 MB, free: 7.598 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004906/0.01171, allocations: 238.5 kB / 332.9 MB, free: 7.355 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.01188, allocations: 100.8 kB / 333 MB, free: 7.254 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.0119, allocations: 7.984 kB / 333 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003247/0.01223, allocations: 229.2 kB / 333.3 MB, free: 6.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.513e-06/0.01223, allocations: 0 / 333.3 MB, free: 6.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001184/0.01341, allocations: 0.5877 MB / 333.8 MB, free: 6.391 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.01346, allocations: 110.8 kB / 334 MB, free: 6.258 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.01367, allocations: 281.9 kB / 334.2 MB, free: 5.973 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.01369, allocations: 25.7 kB / 334.3 MB, free: 5.941 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.928e-05/0.01379, allocations: 216 kB / 334.5 MB, free: 5.727 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.01381, allocations: 39.69 kB / 334.5 MB, free: 5.688 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.283e-05/0.01388, allocations: 53.89 kB / 334.6 MB, free: 5.625 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.606e-05/0.01396, allocations: 334.8 kB / 334.9 MB, free: 5.289 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.01415, allocations: 134.1 kB / 335 MB, free: 5.152 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.01439, allocations: 282.9 kB / 335.3 MB, free: 4.816 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.01478, allocations: 314.5 kB / 335.6 MB, free: 4.469 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.01478, allocations: 0 / 335.6 MB, free: 4.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006521/0.01543, allocations: 0.4936 MB / 336.1 MB, free: 3.953 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.01546, allocations: 33.92 kB / 336.1 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.01547, allocations: 4 kB / 336.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000249/0.01572, allocations: 92.73 kB / 336.2 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.01583, allocations: 43.97 kB / 336.3 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.0173, allocations: 1.879 MB / 338.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.01746, allocations: 59.73 kB / 338.2 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.01747, allocations: 8 kB / 338.2 MB, free: 1.711 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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.0001093/0.01758, allocations: 153.8 kB / 338.4 MB, free: 1.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.298e-05/0.01761, allocations: 23.86 kB / 338.4 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.01764, allocations: 29.77 kB / 338.4 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.01764, allocations: 0 / 338.4 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.01764, allocations: 0 / 338.4 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.01765, allocations: 0 / 338.4 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.01782, allocations: 268.5 kB / 338.7 MB, free: 1.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01783, allocations: 0 / 338.7 MB, free: 1.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.235e-05/0.01789, allocations: 19.98 kB / 338.7 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001572/0.01805, allocations: 80.8 kB / 338.8 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.01806, allocations: 4 kB / 338.8 MB, free: 1.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.01926, allocations: 1.694 MB / 340.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.01926, allocations: 4.031 kB / 340.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005243/0.01979, allocations: 369.6 kB / 340.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.01981, allocations: 23.8 kB / 340.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.01984, allocations: 8 kB / 340.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.01994, allocations: 35.95 kB / 340.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.786e-05/0.02, allocations: 19.97 kB / 340.9 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.02001, allocations: 4 kB / 340.9 MB, free: 14.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001268/0.02013, allocations: 197.2 kB / 341.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02013, allocations: 3.938 kB / 341.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002476/0.02038, allocations: 83.84 kB / 341.2 MB, free: 14.52 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007233/0.0211, allocations: 0.9052 MB / 342.1 MB, free: 13.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005812/0.02168, allocations: 459.5 kB / 342.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.02169, allocations: 0 / 342.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.02192, allocations: 235 kB / 342.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.02216, allocations: 44.59 kB / 342.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.02522, allocations: 3.232 MB / 346.1 MB, free: 9.406 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.02532, allocations: 146.9 kB / 346.2 MB, free: 9.242 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.631e-05/0.02541, allocations: 22.3 kB / 346.2 MB, free: 9.219 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.814e-05/0.02551, allocations: 84.47 kB / 346.3 MB, free: 9.133 MB / 314.7 MB Notification: Performance of SimCode: time 1.483e-06/0.02551, allocations: 0 / 346.3 MB, free: 9.133 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.04825, allocations: 7.707 MB / 354 MB, free: 1.613 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.543/7.591, allocations: 3.125 kB / 354 MB, free: 1.613 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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: 9.229675865732133]