Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.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.0009357/0.0009357, allocations: 79.7 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.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.0009877/0.0009877, allocations: 170 kB / 23.95 MB, free: 0.6133 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.9479/0.9479, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.605e-05, allocations: 5.094 kB / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.002754/0.00278, allocations: 1.917 MB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009525/0.003732, allocations: 0.6115 MB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.003833, allocations: 3.938 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.00397, allocations: 43.53 kB / 327.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.41e-05/0.004034, allocations: 39.53 kB / 327.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.004343, allocations: 83.77 kB / 327.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.004541, allocations: 211.1 kB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.004687, allocations: 60.92 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.004889, allocations: 115.6 kB / 327.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.915e-05/0.004979, allocations: 59.8 kB / 327.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.005004, allocations: 12 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.061e-05/0.005055, allocations: 19.98 kB / 327.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.772e-05/0.005083, allocations: 31.86 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.659e-05/0.005139, allocations: 47.84 kB / 327.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.005348, allocations: 179.3 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.005351, allocations: 0 / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.005352, allocations: 0 / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.005358, allocations: 8 kB / 328 MB, free: 12.36 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005696/0.005927, allocations: 421.2 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.005971, allocations: 8.031 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.931e-05/0.00602, allocations: 50.67 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.006191, allocations: 52.7 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/0.006482, allocations: 185.3 kB / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.006498, allocations: 8.375 kB / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/0.00653, allocations: 20.38 kB / 328.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.006755, allocations: 160.7 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.006762, allocations: 192 / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.006776, allocations: 12.12 kB / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.006783, allocations: 3.984 kB / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.006918, allocations: 91.89 kB / 329 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006454/0.007564, allocations: 0.5663 MB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001719/0.007736, allocations: 131.8 kB / 329.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.137e-05/0.007807, allocations: 62.61 kB / 329.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.007826, allocations: 4 kB / 329.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.00785, allocations: 46.5 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.007851, allocations: 0 / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003216/0.008173, allocations: 177.5 kB / 330 MB, free: 10.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.008219, allocations: 110.8 kB / 330.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.00838, allocations: 241.9 kB / 330.3 MB, free: 9.828 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.008393, allocations: 25.7 kB / 330.3 MB, free: 9.797 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.818e-05/0.008461, allocations: 140 kB / 330.5 MB, free: 9.656 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.868e-05/0.008499, allocations: 51.58 kB / 330.5 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.00854, allocations: 33.7 kB / 330.5 MB, free: 9.566 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.008639, allocations: 330.8 kB / 330.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.448e-05/0.008703, allocations: 39.97 kB / 330.9 MB, free: 9.195 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.273e-05/0.008786, allocations: 91.25 kB / 331 MB, free: 9.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.008941, allocations: 154.7 kB / 331.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.008943, allocations: 0 / 331.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002083/0.009152, allocations: 189.2 kB / 331.3 MB, free: 8.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.009165, allocations: 4 kB / 331.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.009171, allocations: 4 kB / 331.3 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.009183, allocations: 4 kB / 331.3 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.797e-05/0.009261, allocations: 35.97 kB / 331.4 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.009266, allocations: 4 kB / 331.4 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.24e-05/0.009319, allocations: 19.83 kB / 331.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.00933, allocations: 7.984 kB / 331.4 MB, free: 8.637 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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 8.247e-05/0.009412, allocations: 141.9 kB / 331.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/0.009457, allocations: 27.8 kB / 331.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002308/0.009687, allocations: 175 kB / 331.7 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.00969, allocations: 0 / 331.7 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.009695, allocations: 0 / 331.7 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.0097, allocations: 4 kB / 331.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.009983, allocations: 224.6 kB / 332 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.009984, allocations: 0 / 332 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.749e-05/0.01007, allocations: 35.92 kB / 332 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.01008, allocations: 7.938 kB / 332 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.01009, allocations: 7.984 kB / 332 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.01009, allocations: 4 kB / 332 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01009, allocations: 0 / 332 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003451/0.01044, allocations: 477 kB / 332.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.622e-05/0.01047, allocations: 31.8 kB / 332.5 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.01048, allocations: 4 kB / 332.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.0106, allocations: 11.98 kB / 332.5 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.01065, allocations: 15.98 kB / 332.5 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.01066, allocations: 8.172 kB / 332.6 MB, free: 7.414 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.01076, allocations: 169.2 kB / 332.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01076, allocations: 0 / 332.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002507/0.01101, allocations: 36 kB / 332.8 MB, free: 7.215 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.phi) * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005698/0.01158, allocations: 0.9997 MB / 333.8 MB, free: 6.188 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001902/0.01177, allocations: 115.9 kB / 333.9 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.01177, allocations: 3.938 kB / 333.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.647e-05/0.01185, allocations: 67.97 kB / 333.9 MB, free: 6.004 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.01213, allocations: 16.5 kB / 334 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/0.01405, allocations: 2.471 MB / 336.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.822e-05/0.01415, allocations: 133.8 kB / 336.6 MB, free: 3.219 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.677e-05/0.0142, allocations: 21.47 kB / 336.6 MB, free: 3.199 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.337e-05/0.01429, allocations: 76.47 kB / 336.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01429, allocations: 0 / 336.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.03391, allocations: 4.362 MB / 341 MB, free: 14.88 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.767/6.801, allocations: 15.22 kB / 341 MB, free: 14.88 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.Modulation.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.641253205947578]