Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.001122/0.001122, allocations: 76.06 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.001177/0.001177, allocations: 149.1 kB / 23.93 MB, free: 0.6328 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.8966/0.8966, allocations: 173.4 MB / 200.4 MB, free: 9.441 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.OpAmps.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.2e-05/2.426e-05, allocations: 2.281 kB / 318.5 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.004857/0.004882, allocations: 2.667 MB / 321.1 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.00637, allocations: 0.6973 MB / 321.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.00657, allocations: 7.938 kB / 321.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001886/0.006759, allocations: 47.5 kB / 321.9 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000253/0.007012, allocations: 103.2 kB / 322 MB, free: 2.785 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.007377, allocations: 123.7 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004734/0.007851, allocations: 402.3 kB / 322.5 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.008072, allocations: 75.69 kB / 322.6 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00036/0.008432, allocations: 231.4 kB / 322.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.00863, allocations: 127.6 kB / 322.9 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.889e-05/0.008689, allocations: 36 kB / 323 MB, free: 1.805 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.427e-05/0.008743, allocations: 40 kB / 323 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.895e-05/0.008812, allocations: 75.75 kB / 323.1 MB, free: 1.691 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.00895, allocations: 115.7 kB / 323.2 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005046/0.009454, allocations: 442.6 kB / 323.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.00946, allocations: 0 / 323.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.009462, allocations: 0 / 323.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.00947, allocations: 0 / 323.6 MB, free: 1.145 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001337/0.01081, allocations: 0.5859 MB / 324.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.01086, allocations: 8.922 kB / 324.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.928e-05/0.01093, allocations: 62.73 kB / 324.3 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.132e-05/0.01101, allocations: 36.7 kB / 324.3 MB, free: 420 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004584/0.01147, allocations: 238.1 kB / 324.5 MB, free: 156 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.01149, allocations: 20.88 kB / 324.6 MB, free: 136 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.511e-05/0.01154, allocations: 20.38 kB / 324.6 MB, free: 116 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007042/0.01224, allocations: 337 kB / 324.9 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.01226, allocations: 192 / 324.9 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.01229, allocations: 20.11 kB / 324.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.0123, allocations: 4 kB / 324.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007059/0.013, allocations: 281.8 kB / 325.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.0147, allocations: 0.9837 MB / 326.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007733/0.01548, allocations: 242.6 kB / 326.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/0.01575, allocations: 92.78 kB / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.01577, allocations: 4 kB / 326.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003979/0.01617, allocations: 210.5 kB / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.01617, allocations: 0 / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007976/0.01696, allocations: 305.3 kB / 327 MB, free: 13.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.01702, allocations: 85.09 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.01729, allocations: 269.8 kB / 327.4 MB, free: 13.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.01731, allocations: 29.7 kB / 327.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.01743, allocations: 208 kB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.794e-05/0.01747, allocations: 35.69 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.392e-05/0.01755, allocations: 53.64 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.01767, allocations: 334.8 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005276/0.0182, allocations: 129.8 kB / 328.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003331/0.01853, allocations: 243 kB / 328.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005626/0.01909, allocations: 307.7 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.0191, allocations: 3.938 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008062/0.0199, allocations: 392.8 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/0.01994, allocations: 33.69 kB / 329.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.01995, allocations: 4 kB / 329.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.01998, allocations: 4 kB / 329.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.02024, allocations: 67.89 kB / 329.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.02025, allocations: 4 kB / 329.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.02052, allocations: 55.86 kB / 329.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.02054, allocations: 8 kB / 329.2 MB, free: 11.12 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001614/0.0207, allocations: 165.6 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.414e-05/0.02074, allocations: 23.86 kB / 329.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.884e-05/0.02079, allocations: 21.77 kB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.02079, allocations: 0 / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.0208, allocations: 0 / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.0208, allocations: 4 kB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.02105, allocations: 256.5 kB / 329.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.02105, allocations: 4 kB / 329.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.02123, allocations: 43.95 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.02124, allocations: 8 kB / 329.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.02125, allocations: 0 / 329.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.02125, allocations: 0 / 329.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.02126, allocations: 3.938 kB / 329.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008605/0.02212, allocations: 372.6 kB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.757e-05/0.02217, allocations: 23.88 kB / 330.2 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.0222, allocations: 8 kB / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.02236, allocations: 28.03 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.336e-05/0.02245, allocations: 19.97 kB / 330.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.02246, allocations: 0 / 330.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001862/0.02264, allocations: 189.2 kB / 330.4 MB, free: 9.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.02264, allocations: 0 / 330.4 MB, free: 9.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003292/0.02297, allocations: 67.83 kB / 330.5 MB, free: 9.844 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001131/0.0241, allocations: 0.9089 MB / 331.4 MB, free: 8.906 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007193/0.02482, allocations: 313.4 kB / 331.7 MB, free: 8.582 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.02483, allocations: 4 kB / 331.7 MB, free: 8.578 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.02511, allocations: 99.92 kB / 331.8 MB, free: 8.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.02546, allocations: 45.33 kB / 331.8 MB, free: 8.438 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.02978, allocations: 2.98 MB / 334.8 MB, free: 5.273 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.971e-05/0.02988, allocations: 150.8 kB / 335 MB, free: 5.105 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.03001, allocations: 26.23 kB / 335 MB, free: 5.082 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.03012, allocations: 84.47 kB / 335.1 MB, free: 5 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.03012, allocations: 3.938 kB / 335.1 MB, free: 4.996 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.05191, allocations: 6.494 MB / 341.6 MB, free: 14.67 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.903/6.955, allocations: 2.75 kB / 341.6 MB, free: 14.67 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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: 8.637073027901351]