Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.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.0009704/0.0009704, 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.0009199/0.0009199, allocations: 149.4 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.9247/0.9247, allocations: 173.3 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.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.336e-05/1.499e-05, allocations: 2.281 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.001978/0.001993, allocations: 1.894 MB / 320.3 MB, free: 4.461 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006504/0.002643, allocations: 0.5376 MB / 320.8 MB, free: 3.922 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.894e-05/0.002722, allocations: 7.938 kB / 320.9 MB, free: 3.914 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.002855, allocations: 39.53 kB / 320.9 MB, free: 3.875 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.371e-05/0.002919, allocations: 47.53 kB / 320.9 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001954/0.003114, allocations: 75.72 kB / 321 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001623/0.003276, allocations: 207.1 kB / 321.2 MB, free: 3.551 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.003414, allocations: 48.55 kB / 321.3 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.003539, allocations: 107.8 kB / 321.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.376e-05/0.003613, allocations: 55.8 kB / 321.4 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.789e-05/0.003641, allocations: 19.94 kB / 321.4 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.559e-05/0.003656, allocations: 12 kB / 321.5 MB, free: 3.309 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.579e-05/0.003682, allocations: 31.84 kB / 321.5 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.011e-05/0.003722, allocations: 51.84 kB / 321.5 MB, free: 3.227 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001588/0.003881, allocations: 179.2 kB / 321.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.003883, allocations: 0 / 321.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.003884, allocations: 0 / 321.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.003888, allocations: 0 / 321.7 MB, free: 3.051 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004671/0.004355, allocations: 417.3 kB / 322.1 MB, free: 2.613 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.004395, allocations: 16.92 kB / 322.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.738e-05/0.004432, allocations: 46.73 kB / 322.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.42e-05/0.004466, allocations: 24.8 kB / 322.2 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.004631, allocations: 169.4 kB / 322.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.004642, allocations: 8.375 kB / 322.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.004671, allocations: 16.38 kB / 322.4 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.004872, allocations: 160.1 kB / 322.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.00488, allocations: 0 / 322.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.004893, allocations: 8 kB / 322.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.004899, allocations: 4 kB / 322.6 MB, free: 2.121 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.005028, allocations: 95.88 kB / 322.7 MB, free: 2.027 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006215/0.00565, allocations: 0.5779 MB / 323.2 MB, free: 1.398 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.00581, allocations: 123.8 kB / 323.4 MB, free: 1.25 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.554e-05/0.005876, allocations: 50.69 kB / 323.4 MB, free: 1.191 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.005894, allocations: 4 kB / 323.4 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.005913, allocations: 34.56 kB / 323.4 MB, free: 1.145 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 8.81e-07/0.005913, allocations: 8 kB / 323.5 MB, free: 1.137 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003428/0.006256, allocations: 177.3 kB / 323.6 MB, free: 0.957 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.006301, allocations: 106.8 kB / 323.7 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.006457, allocations: 229.9 kB / 324 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.176e-05/0.006469, allocations: 33.64 kB / 324 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.159e-05/0.00653, allocations: 140 kB / 324.1 MB, free: 428 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.006567, allocations: 55.52 kB / 324.2 MB, free: 372 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.81e-05/0.006605, allocations: 33.83 kB / 324.2 MB, free: 332 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.006778, allocations: 338.8 kB / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.276e-05/0.00684, allocations: 39.89 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.409e-05/0.006925, allocations: 93.8 kB / 324.7 MB, free: 15.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.007084, allocations: 151.2 kB / 324.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.007086, allocations: 3.938 kB / 324.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002066/0.007293, allocations: 185.3 kB / 325 MB, free: 15.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.007307, allocations: 8 kB / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.007312, allocations: 0 / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.007326, allocations: 4 kB / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.849e-05/0.007414, allocations: 44.09 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.00742, allocations: 4 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.286e-05/0.007473, allocations: 15.89 kB / 325.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.007486, allocations: 7.984 kB / 325.1 MB, free: 15.39 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 7.962e-05/0.007566, allocations: 129.8 kB / 325.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.007605, allocations: 27.8 kB / 325.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.007841, allocations: 175 kB / 325.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.007844, allocations: 4 kB / 325.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.007849, allocations: 4 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.007856, allocations: 7.984 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.008129, allocations: 228.5 kB / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.008131, allocations: 4 kB / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.843e-05/0.00822, allocations: 31.97 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.008222, allocations: 0 / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.008236, allocations: 8 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.008237, allocations: 0 / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.00824, allocations: 7.938 kB / 325.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004588/0.008699, allocations: 478 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.288e-05/0.008721, allocations: 23.86 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.008739, allocations: 7.984 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.319e-05/0.008833, allocations: 8 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.008872, allocations: 11.97 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.008879, allocations: 8 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.184e-05/0.008971, allocations: 173.2 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008971, allocations: 0 / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.009191, allocations: 35.95 kB / 326.4 MB, free: 13.97 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.0004848/0.009676, allocations: 0.9998 MB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001817/0.009857, allocations: 111.8 kB / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009859, allocations: 0 / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.409e-05/0.009933, allocations: 64.27 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.01021, allocations: 22.94 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.01224, allocations: 2.464 MB / 330.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.389e-05/0.01232, allocations: 129.9 kB / 330.2 MB, free: 10 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.442e-05/0.01236, allocations: 25.45 kB / 330.2 MB, free: 9.977 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.895e-05/0.01244, allocations: 72.47 kB / 330.3 MB, free: 9.906 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01244, allocations: 3.938 kB / 330.3 MB, free: 9.902 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01795/0.0304, allocations: 4.292 MB / 334.6 MB, free: 5.73 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.708/6.738, allocations: 7.938 kB / 334.6 MB, free: 5.723 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.55522019509226]