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.001795/0.001795, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001784/0.001784, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.436/1.436, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001645/0.001645, allocations: 47.94 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1051, allocations: 53.34 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.004112/0.1092, allocations: 2.015 MB / 428.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.1107, allocations: 0.6389 MB / 429 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000239/0.1109, allocations: 7.938 kB / 429 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002087/0.1111, allocations: 43.47 kB / 429 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.1113, allocations: 43.59 kB / 429.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004148/0.1117, allocations: 83.83 kB / 429.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000361/0.1121, allocations: 207.2 kB / 429.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.1122, allocations: 48.38 kB / 429.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.1125, allocations: 83.64 kB / 429.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.1126, allocations: 79.56 kB / 429.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.1126, allocations: 16 kB / 429.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.671e-05/0.1127, allocations: 19.98 kB / 429.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.742e-05/0.1127, allocations: 31.86 kB / 429.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.1128, allocations: 87.41 kB / 429.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003172/0.1132, allocations: 183 kB / 429.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.1132, allocations: 4 kB / 429.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1132, allocations: 0 / 429.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.1132, allocations: 0 / 429.9 MB, free: 1.219 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.0009966/0.1142, allocations: 0.5022 MB / 430.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.1142, allocations: 8.031 kB / 430.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.846e-05/0.1143, allocations: 46.73 kB / 430.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003061/0.1146, allocations: 44.77 kB / 430.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004551/0.1151, allocations: 243.9 kB / 430.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.1151, allocations: 8.375 kB / 430.7 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.048e-05/0.1152, allocations: 20.36 kB / 430.7 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003707/0.1155, allocations: 168.8 kB / 430.9 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.1155, allocations: 0 / 430.9 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.049e-05/0.1156, allocations: 4 kB / 430.9 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.1156, allocations: 7.984 kB / 430.9 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2319/0.3475, allocations: 84.05 kB / 431 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.3486, allocations: 0.6384 MB / 431.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.3489, allocations: 125.9 kB / 431.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.349, allocations: 53.33 kB / 431.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.349, allocations: 1.875 kB / 431.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.3491, allocations: 41.92 kB / 431.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.204e-06/0.3491, allocations: 2.531 kB / 431.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006603/0.3497, allocations: 182.6 kB / 432 MB, free: 10.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.3498, allocations: 104.4 kB / 432.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.35, allocations: 241.6 kB / 432.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.35, allocations: 26.48 kB / 432.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.8e-05/0.3501, allocations: 135.9 kB / 432.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.696e-05/0.3502, allocations: 56.75 kB / 432.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.258e-05/0.3502, allocations: 30.44 kB / 432.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.027e-05/0.3503, allocations: 332.8 kB / 432.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.3504, allocations: 41.27 kB / 433 MB, free: 9.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.3506, allocations: 100 kB / 433.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.3508, allocations: 145.2 kB / 433.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3508, allocations: 4.875 kB / 433.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003636/0.3512, allocations: 178.6 kB / 433.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.3512, allocations: 10.47 kB / 433.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3512, allocations: 2.938 kB / 433.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.3512, allocations: 3.312 kB / 433.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.3514, allocations: 35.34 kB / 433.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.3514, allocations: 7.969 kB / 433.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.3515, allocations: 18.61 kB / 433.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.3515, allocations: 10.14 kB / 433.5 MB, free: 9.734 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 9.747e-05/0.3516, allocations: 131 kB / 433.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.467e-05/0.3517, allocations: 26.3 kB / 433.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003936/0.3521, allocations: 186.2 kB / 433.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.3521, allocations: 5.203 kB / 433.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.3521, allocations: 1.094 kB / 433.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3521, allocations: 1.094 kB / 433.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004223/0.3525, allocations: 269.9 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3525, allocations: 1.125 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.3527, allocations: 35.23 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3527, allocations: 5.281 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.3527, allocations: 8.609 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3528, allocations: 3.469 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3528, allocations: 5 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005122/0.3533, allocations: 479 kB / 434.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.321e-05/0.3533, allocations: 106.7 kB / 434.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/0.3533, allocations: 4.469 kB / 434.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.3535, allocations: 12.72 kB / 434.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.411e-05/0.3536, allocations: 8.5 kB / 434.8 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.3536, allocations: 12.05 kB / 434.8 MB, free: 8.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001267/0.3537, allocations: 175.5 kB / 434.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3537, allocations: 0 / 434.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.3541, allocations: 35.06 kB / 435 MB, free: 8.879 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.000625/0.3547, allocations: 1.004 MB / 436 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003063/0.355, allocations: 108.9 kB / 436.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.355, allocations: 1.125 kB / 436.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.3551, allocations: 64.98 kB / 436.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.3555, allocations: 16.28 kB / 436.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.3584, allocations: 2.578 MB / 438.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.3586, allocations: 0.7471 MB / 439.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.182e-05/0.3586, allocations: 24.61 kB / 439.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.914e-05/0.3587, allocations: 68.77 kB / 439.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3587, allocations: 3.156 kB / 439.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.3878, allocations: 3.69 MB / 443.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.001/8.388, allocations: 16.23 kB / 443.3 MB, free: 4.91 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.927279626950622]