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.001282/0.001282, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.00138/0.00138, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.477/1.477, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.001674/0.001674, allocations: 47.92 kB / 370.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3035, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003582/0.3071, allocations: 2.009 MB / 424.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.3082, allocations: 0.5843 MB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.3083, allocations: 3.938 kB / 425.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.3084, allocations: 47.53 kB / 425.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.535e-05/0.3085, allocations: 31.66 kB / 425.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.3089, allocations: 71.8 kB / 425.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.3091, allocations: 203.2 kB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.3093, allocations: 56.48 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.3094, allocations: 79.66 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.3096, allocations: 83.56 kB / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.065e-05/0.3096, allocations: 12 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.532e-05/0.3097, allocations: 12 kB / 425.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.23e-05/0.3097, allocations: 35.84 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.369e-05/0.3098, allocations: 83.48 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.3101, allocations: 179.4 kB / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3101, allocations: 0 / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3101, allocations: 0 / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3101, allocations: 0 / 426.1 MB, free: 11.14 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.000764/0.3108, allocations: 429.2 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3109, allocations: 8.031 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.808e-05/0.3109, allocations: 42.75 kB / 426.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.721e-05/0.311, allocations: 28.78 kB / 426.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.3113, allocations: 174.1 kB / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.3113, allocations: 12.12 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.3113, allocations: 16 kB / 426.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003845/0.3117, allocations: 168.1 kB / 426.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3117, allocations: 0 / 426.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.3117, allocations: 4 kB / 426.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3117, allocations: 4 kB / 426.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.312, allocations: 87.88 kB / 427 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.313, allocations: 0.6128 MB / 427.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.3133, allocations: 127.8 kB / 427.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.3134, allocations: 54.67 kB / 427.8 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.3135, allocations: 8 kB / 427.8 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.3135, allocations: 34.5 kB / 427.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.193e-06/0.3135, allocations: 0 / 427.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005028/0.314, allocations: 186 kB / 428 MB, free: 8.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.3141, allocations: 106.8 kB / 428.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/0.3144, allocations: 233.1 kB / 428.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.3144, allocations: 29.7 kB / 428.4 MB, free: 8.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.3145, allocations: 132 kB / 428.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.414e-05/0.3146, allocations: 47.62 kB / 428.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.3146, allocations: 37.69 kB / 428.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3148, allocations: 330.8 kB / 428.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.3149, allocations: 43.97 kB / 429 MB, free: 7.992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.3151, allocations: 98.22 kB / 429.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.3154, allocations: 142.7 kB / 429.2 MB, free: 7.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.3154, allocations: 4 kB / 429.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003455/0.3157, allocations: 189.3 kB / 429.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3157, allocations: 4 kB / 429.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.3157, allocations: 4 kB / 429.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.3158, allocations: 0 / 429.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.3159, allocations: 35.92 kB / 429.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.3159, allocations: 3.984 kB / 429.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.3161, allocations: 16.08 kB / 429.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.3161, allocations: 16 kB / 429.5 MB, free: 7.438 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.0001305/0.3162, allocations: 133.7 kB / 429.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.387e-05/0.3163, allocations: 23.84 kB / 429.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003876/0.3167, allocations: 182.9 kB / 429.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3167, allocations: 4 kB / 429.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3167, allocations: 0 / 429.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.778e-06/0.3167, allocations: 4 kB / 429.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004652/0.3172, allocations: 244.5 kB / 430.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3172, allocations: 0 / 430.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.3173, allocations: 39.91 kB / 430.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.3173, allocations: 7.938 kB / 430.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3174, allocations: 0 / 430.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.3174, allocations: 4 kB / 430.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3174, allocations: 128 / 430.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000607/0.318, allocations: 484.7 kB / 430.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.065e-05/0.3181, allocations: 23.86 kB / 430.6 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.3181, allocations: 7.984 kB / 430.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.3183, allocations: 8 kB / 430.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/0.3183, allocations: 15.91 kB / 430.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.3183, allocations: 8 kB / 430.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001595/0.3185, allocations: 172.5 kB / 430.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3185, allocations: 0 / 430.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003474/0.3188, allocations: 32 kB / 430.9 MB, free: 5.996 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.0009878/0.3198, allocations: 1.004 MB / 431.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003497/0.3202, allocations: 108.1 kB / 432 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.3202, allocations: 4 kB / 432 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.3203, allocations: 60.45 kB / 432 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.0004032/0.3207, allocations: 27.19 kB / 432.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.3241, allocations: 2.569 MB / 434.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.3245, allocations: 0.7398 MB / 435.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.635e-05/0.3246, allocations: 21.47 kB / 435.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.3247, allocations: 67.41 kB / 435.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3247, allocations: 0 / 435.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03456/0.3593, allocations: 3.833 MB / 439.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.54, allocations: 4 kB / 439.3 MB, free: 13.51 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.196608552942052]