Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 187.1 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 43.92 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3114, allocations: 52.19 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003389/0.3148, allocations: 1.9 MB / 424.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000986/0.3158, allocations: 0.5454 MB / 425 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.383e-05/0.3159, allocations: 7.938 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.316, allocations: 39.59 kB / 425.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.211e-05/0.3161, allocations: 39.59 kB / 425.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001855/0.3163, allocations: 63.84 kB / 425.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.3165, allocations: 207.2 kB / 425.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.3167, allocations: 52.3 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.3168, allocations: 75.66 kB / 425.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.317, allocations: 75.55 kB / 425.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.317, allocations: 12 kB / 425.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.782e-05/0.317, allocations: 12 kB / 425.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.072e-05/0.3171, allocations: 35.84 kB / 425.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.948e-05/0.3171, allocations: 71.53 kB / 425.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.3174, allocations: 173 kB / 425.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3174, allocations: 0 / 425.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3174, allocations: 4 kB / 425.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.3174, allocations: 0 / 425.9 MB, free: 11.09 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.0007126/0.3181, allocations: 429.2 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.3181, allocations: 8.031 kB / 426.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.487e-05/0.3182, allocations: 50.73 kB / 426.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.959e-05/0.3183, allocations: 20.8 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.3185, allocations: 182.1 kB / 426.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.3186, allocations: 12.12 kB / 426.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.3186, allocations: 12 kB / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003261/0.3189, allocations: 172.1 kB / 426.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3189, allocations: 0 / 426.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.3189, allocations: 4 kB / 426.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.3189, allocations: 4 kB / 426.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.3192, allocations: 87.94 kB / 426.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009794/0.3202, allocations: 0.5817 MB / 427.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.3204, allocations: 123.8 kB / 427.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.3206, allocations: 54.67 kB / 427.6 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.3206, allocations: 0 / 427.6 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.014e-05/0.3206, allocations: 46.44 kB / 427.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.3206, allocations: 0 / 427.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004937/0.3211, allocations: 181.8 kB / 427.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.083e-05/0.3212, allocations: 102.9 kB / 427.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.3215, allocations: 237.1 kB / 428.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.3215, allocations: 29.7 kB / 428.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.3216, allocations: 136 kB / 428.3 MB, free: 8.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.678e-05/0.3217, allocations: 51.58 kB / 428.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.862e-05/0.3217, allocations: 33.7 kB / 428.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.3219, allocations: 334.8 kB / 428.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.322, allocations: 39.98 kB / 428.7 MB, free: 7.969 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.3222, allocations: 90.78 kB / 428.8 MB, free: 7.855 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/0.3224, allocations: 142.8 kB / 429 MB, free: 7.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3224, allocations: 4 kB / 429 MB, free: 7.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003617/0.3228, allocations: 189.4 kB / 429.2 MB, free: 7.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3228, allocations: 4 kB / 429.2 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3228, allocations: 4 kB / 429.2 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.3228, allocations: 0 / 429.2 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.323, allocations: 43.91 kB / 429.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.323, allocations: 3.938 kB / 429.2 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.3231, allocations: 15.89 kB / 429.2 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.3231, allocations: 8 kB / 429.2 MB, free: 7.418 MB / 334.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.0001568/0.3233, allocations: 137.8 kB / 429.4 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.915e-05/0.3234, allocations: 23.86 kB / 429.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004047/0.3238, allocations: 178.9 kB / 429.6 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3238, allocations: 4 kB / 429.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3238, allocations: 0 / 429.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3238, allocations: 0 / 429.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004338/0.3242, allocations: 228.5 kB / 429.8 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3242, allocations: 0 / 429.8 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.3244, allocations: 35.92 kB / 429.8 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3244, allocations: 4 kB / 429.8 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.3244, allocations: 11.98 kB / 429.8 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3244, allocations: 192 / 429.8 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3244, allocations: 4 kB / 429.8 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.325, allocations: 479.5 kB / 430.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.913e-05/0.3251, allocations: 23.8 kB / 430.3 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.3251, allocations: 8.062 kB / 430.3 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.3253, allocations: 7.984 kB / 430.4 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.352e-05/0.3253, allocations: 15.92 kB / 430.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.3253, allocations: 11.98 kB / 430.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.3255, allocations: 172.5 kB / 430.5 MB, free: 6.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3255, allocations: 3.938 kB / 430.6 MB, free: 6.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003395/0.3258, allocations: 32 kB / 430.6 MB, free: 5.988 MB / 334.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.0008888/0.3267, allocations: 0.9906 MB / 431.6 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002983/0.327, allocations: 115.9 kB / 431.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.327, allocations: 4 kB / 431.7 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.3272, allocations: 59.91 kB / 431.7 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.3276, allocations: 16.38 kB / 431.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.3309, allocations: 2.574 MB / 434.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.3311, allocations: 133.8 kB / 434.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.694e-05/0.3312, allocations: 21.47 kB / 434.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.3313, allocations: 75.41 kB / 434.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3313, allocations: 0 / 434.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.3677, allocations: 4.156 MB / 438.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/11, allocations: 10.56 kB / 438.7 MB, free: 13.79 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.523476402740926]