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.001284/0.001284, allocations: 121 kB / 18.5 MB, free: 4.562 MB / 14.72 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.001334/0.001334, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 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 1.501/1.501, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Modulation",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 51.88 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1202, allocations: 53.33 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003346/0.1235, allocations: 2.023 MB / 429 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.1247, allocations: 0.6428 MB / 429.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1248, allocations: 7.875 kB / 429.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.125, allocations: 43.53 kB / 429.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.068e-05/0.1251, allocations: 35.59 kB / 429.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.1254, allocations: 79.84 kB / 429.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002739/0.1257, allocations: 211.2 kB / 430 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.1258, allocations: 56.36 kB / 430.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.126, allocations: 75.66 kB / 430.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.1261, allocations: 79.55 kB / 430.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.1262, allocations: 12 kB / 430.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.986e-05/0.1262, allocations: 20 kB / 430.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.408e-05/0.1263, allocations: 31.86 kB / 430.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.478e-05/0.1263, allocations: 99.33 kB / 430.4 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.1266, allocations: 171.1 kB / 430.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1266, allocations: 0 / 430.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1266, allocations: 0 / 430.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1266, allocations: 4 kB / 430.6 MB, free: 1.191 MB / 350.1 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.000759/0.1274, allocations: 0.5061 MB / 431.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1274, allocations: 12.03 kB / 431.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.43e-05/0.1274, allocations: 4.188 kB / 431.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.555e-05/0.1275, allocations: 46.69 kB / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.1277, allocations: 40.77 kB / 431.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.1281, allocations: 244 kB / 431.4 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.1281, allocations: 12.38 kB / 431.4 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.1281, allocations: 16.38 kB / 431.5 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003211/0.1284, allocations: 168.6 kB / 431.6 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1284, allocations: 0 / 431.6 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.1285, allocations: 8 kB / 431.6 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.1285, allocations: 7.984 kB / 431.6 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2161/0.3446, allocations: 86.48 kB / 431.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.3458, allocations: 0.6328 MB / 432.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.346, allocations: 132.3 kB / 432.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.3461, allocations: 49.59 kB / 432.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.3462, allocations: 6.234 kB / 432.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.3462, allocations: 40.14 kB / 432.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.974e-06/0.3462, allocations: 0 / 432.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005421/0.3467, allocations: 178.4 kB / 432.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.3468, allocations: 109.6 kB / 432.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/0.347, allocations: 240.3 kB / 433.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.3471, allocations: 25.7 kB / 433.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.86e-05/0.3471, allocations: 137.1 kB / 433.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/0.3472, allocations: 55.03 kB / 433.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.714e-05/0.3472, allocations: 33.08 kB / 433.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.922e-05/0.3473, allocations: 335.6 kB / 433.7 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.3474, allocations: 38.52 kB / 433.7 MB, free: 9.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.3476, allocations: 101.4 kB / 433.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.3478, allocations: 141.6 kB / 433.9 MB, free: 9.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3479, allocations: 1.125 kB / 433.9 MB, free: 9.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003557/0.3482, allocations: 185.5 kB / 434.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3482, allocations: 9.438 kB / 434.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.3482, allocations: 2.688 kB / 434.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.488e-05/0.3483, allocations: 4.719 kB / 434.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.3484, allocations: 39.61 kB / 434.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.3484, allocations: 0 / 434.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.3485, allocations: 15.02 kB / 434.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.3485, allocations: 13.25 kB / 434.2 MB, free: 9.738 MB / 350.1 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.563e-05/0.3486, allocations: 135.9 kB / 434.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.267e-05/0.3487, allocations: 24.8 kB / 434.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003684/0.3491, allocations: 185 kB / 434.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3491, allocations: 7 kB / 434.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3491, allocations: 1.562 kB / 434.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3491, allocations: 1.625 kB / 434.6 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004076/0.3495, allocations: 264.4 kB / 434.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3495, allocations: 1.219 kB / 434.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.3497, allocations: 34.73 kB / 434.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3497, allocations: 8.688 kB / 434.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.3497, allocations: 5.438 kB / 434.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3497, allocations: 2.312 kB / 434.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3497, allocations: 3.594 kB / 434.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005115/0.3502, allocations: 479.3 kB / 435.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.054e-05/0.3503, allocations: 102.8 kB / 435.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.3503, allocations: 12.92 kB / 435.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.3505, allocations: 7.406 kB / 435.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.3505, allocations: 13.33 kB / 435.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.3506, allocations: 10.72 kB / 435.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.3507, allocations: 174.2 kB / 435.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3507, allocations: 1.469 kB / 435.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003475/0.3511, allocations: 29.47 kB / 435.7 MB, free: 8.883 MB / 350.1 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.0006538/0.3517, allocations: 1.006 MB / 436.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000335/0.352, allocations: 115.6 kB / 436.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.352, allocations: 0 / 436.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.3522, allocations: 61.36 kB / 436.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.3526, allocations: 19.47 kB / 436.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003006/0.3556, allocations: 2.586 MB / 439.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.3559, allocations: 0.7377 MB / 440.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.201e-05/0.356, allocations: 24.78 kB / 440.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.3561, allocations: 75.3 kB / 440.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3561, allocations: 1.969 kB / 440.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02583/0.382, allocations: 3.73 MB / 444 MB, free: 4.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.369/8.751, allocations: 10.44 kB / 444 MB, free: 4.883 MB / 350.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins1/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: 11.557594423997216]