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.001371/0.001371, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001532/0.001532, allocations: 211.1 kB / 23.73 MB, free: 4.387 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.545/1.545, allocations: 230.6 MB / 257.5 MB, free: 7.785 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="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 0.001514/0.001514, allocations: 47.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2694, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.004358/0.2738, allocations: 1.909 MB / 433 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.2751, allocations: 0.6077 MB / 433.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.2752, allocations: 7.938 kB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.2754, allocations: 39.53 kB / 433.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.889e-05/0.2755, allocations: 47.53 kB / 433.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.2758, allocations: 83.83 kB / 433.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002755/0.2761, allocations: 207.2 kB / 434 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.2763, allocations: 48.36 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.2765, allocations: 83.64 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.2766, allocations: 75.55 kB / 434.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.2766, allocations: 12 kB / 434.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.867e-05/0.2767, allocations: 20 kB / 434.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.626e-05/0.2767, allocations: 35.8 kB / 434.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.725e-05/0.2768, allocations: 63.61 kB / 434.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.277, allocations: 188.9 kB / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.277, allocations: 0 / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.277, allocations: 0 / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.2771, allocations: 7.938 kB / 434.5 MB, free: 3.219 MB / 334.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.0007115/0.2778, allocations: 429.1 kB / 434.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.2778, allocations: 8.031 kB / 434.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.094e-05/0.2779, allocations: 46.73 kB / 435 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002275/0.2781, allocations: 52.77 kB / 435 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.2784, allocations: 186 kB / 435.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.2784, allocations: 8.375 kB / 435.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.2785, allocations: 12.38 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.2788, allocations: 160.3 kB / 435.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.2788, allocations: 0 / 435.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.2788, allocations: 4 kB / 435.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.2788, allocations: 7.984 kB / 435.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002228/0.279, allocations: 95.89 kB / 435.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009203/0.2799, allocations: 0.5778 MB / 436.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002546/0.2802, allocations: 131.8 kB / 436.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.2803, allocations: 54.67 kB / 436.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.2803, allocations: 0 / 436.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.2804, allocations: 42.55 kB / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.2804, allocations: 0 / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.000479/0.2809, allocations: 181.7 kB / 436.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.2809, allocations: 106.8 kB / 436.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002387/0.2812, allocations: 233.9 kB / 436.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.2812, allocations: 29.7 kB / 436.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.2813, allocations: 136.1 kB / 437 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.076e-05/0.2813, allocations: 51.53 kB / 437 MB, free: 496 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.421e-05/0.2814, allocations: 37.83 kB / 437 MB, free: 452 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.2815, allocations: 330.8 kB / 437.4 MB, free: 112 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.2816, allocations: 40.11 kB / 437.4 MB, free: 72 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.2818, allocations: 94.84 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.2821, allocations: 154.6 kB / 437.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2821, allocations: 7.875 kB / 437.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003483/0.2824, allocations: 185.3 kB / 437.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2824, allocations: 4 kB / 437.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2824, allocations: 0 / 437.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.2825, allocations: 4 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.2826, allocations: 40.16 kB / 437.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.2826, allocations: 3.938 kB / 437.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.2827, allocations: 19.89 kB / 437.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.2827, allocations: 4 kB / 437.9 MB, free: 15.51 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 0.0001194/0.2829, allocations: 133.8 kB / 438 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.2829, allocations: 19.86 kB / 438.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004093/0.2833, allocations: 186.9 kB / 438.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.2833, allocations: 4 kB / 438.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2833, allocations: 4 kB / 438.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2833, allocations: 0 / 438.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.2838, allocations: 228.5 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2838, allocations: 0 / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.284, allocations: 35.98 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.284, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.284, allocations: 7.984 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.284, allocations: 3.938 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.284, allocations: 0 / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005687/0.2846, allocations: 484.3 kB / 439 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.91e-05/0.2846, allocations: 19.92 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.2846, allocations: 4.188 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.2848, allocations: 15.98 kB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/0.2849, allocations: 11.97 kB / 439 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.2849, allocations: 8 kB / 439.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001603/0.285, allocations: 169.2 kB / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.285, allocations: 3.938 kB / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.2854, allocations: 35.94 kB / 439.3 MB, free: 14.09 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.0008478/0.2862, allocations: 1.012 MB / 440.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002867/0.2865, allocations: 107.9 kB / 440.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2865, allocations: 0 / 440.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.2866, allocations: 68.2 kB / 440.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.287, allocations: 16.5 kB / 440.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.2902, allocations: 2.585 MB / 443 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.2904, allocations: 133.8 kB / 443.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.176e-05/0.2904, allocations: 25.47 kB / 443.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.2905, allocations: 67.41 kB / 443.3 MB, free: 9.895 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2905, allocations: 0 / 443.3 MB, free: 9.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03527/0.3258, allocations: 4.234 MB / 447.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.35, allocations: 9.922 kB / 447.5 MB, free: 5.785 MB / 350.1 MB " [Timeout remaining time 649] (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: 14.039060081820935]