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.001677/0.001677, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001923/0.001923, allocations: 212.3 kB / 23.74 MB, free: 4.688 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001556/0.001556, allocations: 44.06 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3455, allocations: 53.37 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.004693/0.3501, allocations: 2.017 MB / 433.1 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.3518, allocations: 0.6544 MB / 433.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.3519, allocations: 7.938 kB / 433.8 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.3521, allocations: 39.53 kB / 433.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.3523, allocations: 39.58 kB / 433.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.3526, allocations: 91.72 kB / 434 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003536/0.353, allocations: 207.2 kB / 434.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.3532, allocations: 48.56 kB / 434.2 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.3534, allocations: 79.64 kB / 434.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.3536, allocations: 83.5 kB / 434.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.679e-05/0.3536, allocations: 16 kB / 434.4 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.308e-05/0.3537, allocations: 15.98 kB / 434.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.757e-05/0.3537, allocations: 35.86 kB / 434.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.3539, allocations: 87.41 kB / 434.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.3542, allocations: 179.5 kB / 434.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3542, allocations: 8 kB / 434.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3542, allocations: 0 / 434.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.3542, allocations: 0 / 434.7 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.0009039/0.3551, allocations: 433.1 kB / 435.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3551, allocations: 8.031 kB / 435.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.598e-05/0.3552, allocations: 42.75 kB / 435.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000321/0.3555, allocations: 52.7 kB / 435.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.3559, allocations: 186.1 kB / 435.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.356, allocations: 8.375 kB / 435.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.197e-05/0.356, allocations: 12.38 kB / 435.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/0.3564, allocations: 172.2 kB / 435.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.3564, allocations: 0 / 435.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.3565, allocations: 7.938 kB / 435.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.3565, allocations: 8 kB / 435.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003345/0.3568, allocations: 95.88 kB / 435.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.3581, allocations: 0.5974 MB / 436.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.3585, allocations: 127.8 kB / 436.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.3587, allocations: 58.61 kB / 436.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.3587, allocations: 7.984 kB / 436.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.3587, allocations: 38.56 kB / 436.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.773e-06/0.3587, allocations: 0 / 436.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007419/0.3595, allocations: 177.4 kB / 436.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.3596, allocations: 110.8 kB / 436.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003813/0.36, allocations: 238 kB / 437.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.36, allocations: 25.7 kB / 437.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.3602, allocations: 136.1 kB / 437.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.025e-05/0.3602, allocations: 51.53 kB / 437.3 MB, free: 472 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.296e-05/0.3603, allocations: 41.64 kB / 437.3 MB, free: 424 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.3605, allocations: 330.8 kB / 437.6 MB, free: 84 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.3607, allocations: 35.97 kB / 437.7 MB, free: 48 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.3609, allocations: 95.34 kB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.3614, allocations: 150.7 kB / 437.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3614, allocations: 3.938 kB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000537/0.3619, allocations: 185.5 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3619, allocations: 8.031 kB / 438.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.3619, allocations: 4 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-05/0.362, allocations: 0 / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.3622, allocations: 35.97 kB / 438.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.3622, allocations: 0 / 438.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001707/0.3624, allocations: 23.83 kB / 438.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.3624, allocations: 8 kB / 438.2 MB, free: 15.49 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.0001605/0.3626, allocations: 133.8 kB / 438.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.3627, allocations: 23.86 kB / 438.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005574/0.3633, allocations: 182.9 kB / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.331e-06/0.3633, allocations: 4 kB / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3633, allocations: 0 / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3633, allocations: 0 / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007504/0.364, allocations: 248.4 kB / 438.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.364, allocations: 3.938 kB / 438.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002755/0.3643, allocations: 35.97 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.84e-06/0.3643, allocations: 4.094 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.3643, allocations: 8 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3643, allocations: 80 / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.3643, allocations: 7.969 kB / 438.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008028/0.3651, allocations: 483.2 kB / 439.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.367e-05/0.3652, allocations: 27.8 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/0.3652, allocations: 4.062 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.3655, allocations: 8 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.3655, allocations: 15.97 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.3656, allocations: 4.188 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.3658, allocations: 173.2 kB / 439.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3658, allocations: 0 / 439.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005286/0.3663, allocations: 35.94 kB / 439.5 MB, free: 14.04 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.001068/0.3674, allocations: 1.008 MB / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003676/0.3678, allocations: 111.9 kB / 440.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3678, allocations: 0 / 440.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.3679, allocations: 63.89 kB / 440.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005954/0.3685, allocations: 20.44 kB / 440.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003486/0.372, allocations: 2.59 MB / 443.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.3724, allocations: 0.7437 MB / 444.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.598e-05/0.3725, allocations: 17.47 kB / 444.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3726, allocations: 71.41 kB / 444.2 MB, free: 9.23 MB / 350.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3726, allocations: 0 / 444.2 MB, free: 9.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03667/0.4093, allocations: 3.894 MB / 448.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.77, allocations: 11.42 kB / 448.1 MB, free: 5.465 MB / 350.1 MB " [Timeout remaining time 648] (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.503589939093217]