Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007963/0.0007963, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8841/0.8841, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 318.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.487e-05/1.626e-05, allocations: 4.672 kB / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002594/0.002611, allocations: 2.598 MB / 321.1 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009663/0.003577, allocations: 0.6193 MB / 321.7 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.003721, allocations: 4 kB / 321.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.003858, allocations: 51.56 kB / 321.7 MB, free: 3.039 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001574/0.004016, allocations: 99.06 kB / 321.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.004269, allocations: 87.81 kB / 321.9 MB, free: 2.855 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004278/0.004697, allocations: 390.3 kB / 322.3 MB, free: 2.473 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.004863, allocations: 87.28 kB / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.005057, allocations: 215.6 kB / 322.6 MB, free: 2.176 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.005186, allocations: 123.6 kB / 322.7 MB, free: 2.055 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/0.005227, allocations: 39.94 kB / 322.7 MB, free: 2.016 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.004e-05/0.005257, allocations: 32 kB / 322.8 MB, free: 1.984 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.614e-05/0.005303, allocations: 71.73 kB / 322.8 MB, free: 1.914 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.596e-05/0.005389, allocations: 115.7 kB / 323 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.005671, allocations: 382.8 kB / 323.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.005673, allocations: 0 / 323.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.005674, allocations: 3.938 kB / 323.3 MB, free: 1.422 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.00568, allocations: 0 / 323.3 MB, free: 1.422 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008314/0.006511, allocations: 0.5928 MB / 323.9 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.006551, allocations: 8.922 kB / 323.9 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.899e-05/0.0066, allocations: 62.73 kB / 324 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.463e-05/0.006655, allocations: 36.73 kB / 324 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.006923, allocations: 218.3 kB / 324.2 MB, free: 452 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.006942, allocations: 16.88 kB / 324.3 MB, free: 436 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.386e-05/0.006966, allocations: 24.38 kB / 324.3 MB, free: 412 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004286/0.007394, allocations: 354.6 kB / 324.6 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.007404, allocations: 192 / 324.6 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.007425, allocations: 12.12 kB / 324.6 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.007431, allocations: 8 kB / 324.7 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004221/0.007853, allocations: 249.9 kB / 324.9 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.00898, allocations: 0.9704 MB / 325.9 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/0.00939, allocations: 210.6 kB / 326.1 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.00954, allocations: 88.73 kB / 326.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.009561, allocations: 7.984 kB / 326.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002708/0.009832, allocations: 213.3 kB / 326.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 9.92e-07/0.009833, allocations: 0 / 326.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.00102/0.01085, allocations: 458 kB / 326.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.0109, allocations: 110.7 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/0.0111, allocations: 289.8 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.01112, allocations: 29.7 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.601e-05/0.01121, allocations: 200 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.01123, allocations: 47.62 kB / 327.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.626e-05/0.01129, allocations: 45.94 kB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.964e-05/0.01137, allocations: 338.8 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.01155, allocations: 121.9 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.01177, allocations: 279.2 kB / 328.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.01213, allocations: 306.8 kB / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01213, allocations: 0 / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006166/0.01275, allocations: 461.3 kB / 329 MB, free: 11.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.01278, allocations: 37.69 kB / 329 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.01279, allocations: 0 / 329 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002239/0.01301, allocations: 76.91 kB / 329.1 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.01312, allocations: 47.89 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.01445, allocations: 1.593 MB / 330.8 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.01461, allocations: 63.8 kB / 330.8 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.01463, allocations: 8 kB / 330.8 MB, free: 9.363 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 9.638e-05/0.01473, allocations: 149.7 kB / 331 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.199e-05/0.01475, allocations: 23.86 kB / 331 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.673e-05/0.01477, allocations: 25.77 kB / 331 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.01478, allocations: 4 kB / 331 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.01478, allocations: 0 / 331 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.01478, allocations: 0 / 331 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.01493, allocations: 240.6 kB / 331.3 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.01493, allocations: 4 kB / 331.3 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.591e-05/0.01498, allocations: 23.91 kB / 331.3 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001353/0.01512, allocations: 68.8 kB / 331.4 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.01513, allocations: 4 kB / 331.4 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.01652, allocations: 1.596 MB / 333 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.01652, allocations: 3.938 kB / 333 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004909/0.01701, allocations: 309.6 kB / 333.3 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.01706, allocations: 35.8 kB / 333.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.01708, allocations: 7.984 kB / 333.3 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.01719, allocations: 27.97 kB / 333.3 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.01725, allocations: 27.91 kB / 333.4 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.01726, allocations: 7.984 kB / 333.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001194/0.01738, allocations: 197.2 kB / 333.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01738, allocations: 0 / 333.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002159/0.0176, allocations: 83.88 kB / 333.6 MB, free: 6.355 MB / 298.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 (7): * Single equations (assignments): 4 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006597/0.01826, allocations: 0.8502 MB / 334.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005469/0.0188, allocations: 439.8 kB / 334.9 MB, free: 5.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01881, allocations: 3.938 kB / 334.9 MB, free: 5.016 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002264/0.01903, allocations: 226.5 kB / 335.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.01922, allocations: 48.69 kB / 335.2 MB, free: 4.738 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.02209, allocations: 3.108 MB / 338.3 MB, free: 1.434 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.677e-05/0.02217, allocations: 146.9 kB / 338.4 MB, free: 1.273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.477e-05/0.02223, allocations: 26.28 kB / 338.5 MB, free: 1.246 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.335e-05/0.02232, allocations: 76.48 kB / 338.5 MB, free: 1.164 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.02232, allocations: 0 / 338.5 MB, free: 1.164 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.04171, allocations: 7.553 MB / 346.1 MB, free: 9.789 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/7.853, allocations: 9.875 kB / 346.1 MB, free: 9.785 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.501975162886083]