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.001246/0.001246, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.001406/0.001406, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.371/1.371, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.001506/0.001506, allocations: 51.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2572, allocations: 53.36 MB / 431.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003158/0.2604, allocations: 2.021 MB / 433.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.2615, allocations: 0.6621 MB / 434.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.801e-05/0.2616, allocations: 3.938 kB / 434.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.2617, allocations: 39.53 kB / 434.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.345e-05/0.2618, allocations: 39.59 kB / 434.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.2621, allocations: 83.78 kB / 434.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.2624, allocations: 207.2 kB / 435 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.2625, allocations: 52.55 kB / 435 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.2627, allocations: 79.66 kB / 435.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.2628, allocations: 83.48 kB / 435.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.2628, allocations: 16 kB / 435.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.408e-05/0.2629, allocations: 16 kB / 435.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.278e-05/0.2629, allocations: 31.86 kB / 435.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.038e-05/0.263, allocations: 91.45 kB / 435.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002308/0.2632, allocations: 175.5 kB / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2632, allocations: 0 / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2632, allocations: 0 / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.2633, allocations: 4 kB / 435.5 MB, free: 3.234 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.0006603/0.2639, allocations: 437.1 kB / 435.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.2639, allocations: 12.03 kB / 435.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.762e-05/0.264, allocations: 8.188 kB / 435.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.579e-05/0.264, allocations: 46.73 kB / 436 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.2642, allocations: 40.77 kB / 436 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.2645, allocations: 194 kB / 436.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.2645, allocations: 12.38 kB / 436.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.284e-05/0.2646, allocations: 12.38 kB / 436.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.2649, allocations: 168 kB / 436.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2649, allocations: 0 / 436.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.2649, allocations: 8 kB / 436.4 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.2649, allocations: 4 kB / 436.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.2651, allocations: 91.95 kB / 436.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008768/0.266, allocations: 0.605 MB / 437.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000242/0.2662, allocations: 131.8 kB / 437.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.2664, allocations: 54.62 kB / 437.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.2664, allocations: 0 / 437.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.2664, allocations: 50.48 kB / 437.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.012e-06/0.2664, allocations: 0 / 437.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004657/0.2669, allocations: 169.4 kB / 437.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.2669, allocations: 106.8 kB / 437.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.2672, allocations: 241.9 kB / 437.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.2672, allocations: 29.83 kB / 437.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.776e-05/0.2673, allocations: 136.1 kB / 438 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.751e-05/0.2673, allocations: 51.53 kB / 438.1 MB, free: 456 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.354e-05/0.2674, allocations: 29.7 kB / 438.1 MB, free: 420 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.2675, allocations: 338.8 kB / 438.4 MB, free: 72 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.2676, allocations: 39.91 kB / 438.5 MB, free: 32 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.2678, allocations: 97.73 kB / 438.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/0.268, allocations: 151.1 kB / 438.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.268, allocations: 0 / 438.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003344/0.2684, allocations: 181.4 kB / 438.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.2684, allocations: 8 kB / 438.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2684, allocations: 4.188 kB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.2684, allocations: 4 kB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.2686, allocations: 31.92 kB / 438.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.2686, allocations: 7.984 kB / 438.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.2687, allocations: 19.89 kB / 439 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.2687, allocations: 4 kB / 439 MB, free: 15.48 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.0001126/0.2688, allocations: 133.7 kB / 439.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.291e-05/0.2689, allocations: 27.84 kB / 439.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003723/0.2693, allocations: 182.8 kB / 439.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.654e-06/0.2693, allocations: 0 / 439.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2693, allocations: 4 kB / 439.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2693, allocations: 3.938 kB / 439.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004372/0.2697, allocations: 248.4 kB / 439.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2697, allocations: 0 / 439.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.2699, allocations: 35.91 kB / 439.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.2699, allocations: 4 kB / 439.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.2699, allocations: 8 kB / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2699, allocations: 4 kB / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2699, allocations: 0 / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005415/0.2705, allocations: 473.7 kB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.429e-05/0.2705, allocations: 27.8 kB / 440.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.2705, allocations: 8.062 kB / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.2707, allocations: 4 kB / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.2707, allocations: 15.97 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.2708, allocations: 7.938 kB / 440.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001542/0.2709, allocations: 173.2 kB / 440.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2709, allocations: 0 / 440.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.2712, allocations: 39.88 kB / 440.3 MB, free: 14.03 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.0008149/0.2721, allocations: 1.007 MB / 441.3 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002908/0.2723, allocations: 119.8 kB / 441.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2724, allocations: 0 / 441.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.2725, allocations: 59.91 kB / 441.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.2729, allocations: 24.38 kB / 441.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.2759, allocations: 2.583 MB / 444.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.2763, allocations: 0.7476 MB / 444.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.548e-05/0.2763, allocations: 13.48 kB / 444.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.2765, allocations: 79.39 kB / 445 MB, free: 9.215 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2765, allocations: 0 / 445 MB, free: 9.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02471/0.3012, allocations: 3.922 MB / 448.9 MB, free: 5.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.11, allocations: 2.406 kB / 448.9 MB, free: 5.445 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: 13.721669922000729]