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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Modulation") translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Modulation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 92.8 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 180.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002748, allocations: 15.92 kB / 301.4 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1123, allocations: 50.4 MB / 351.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.00263/0.115, allocations: 1.689 MB / 353.5 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.1163, allocations: 0.5491 MB / 354.1 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002225/0.1166, allocations: 7.938 kB / 354.1 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002187/0.1168, allocations: 31.67 kB / 354.1 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.117, allocations: 27.72 kB / 354.1 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003358/0.1174, allocations: 59.94 kB / 354.2 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003251/0.1177, allocations: 191.2 kB / 354.4 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.118, allocations: 80.2 kB / 354.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.1181, allocations: 55.67 kB / 354.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.1183, allocations: 67.56 kB / 354.6 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.836e-05/0.1183, allocations: 4 kB / 354.6 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.912e-05/0.1184, allocations: 4 kB / 354.6 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.436e-05/0.1184, allocations: 19.86 kB / 354.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1185, allocations: 105.1 kB / 354.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.1187, allocations: 155.6 kB / 354.8 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1187, allocations: 4 kB / 354.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1188, allocations: 0 / 354.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1188, allocations: 0 / 354.8 MB, free: 0.6562 MB / 286.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.0007856/0.1196, allocations: 462.6 kB / 355.3 MB, free: 160 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.1196, allocations: 12.03 kB / 355.3 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.037e-05/0.1197, allocations: 16.75 kB / 355.3 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/0.1201, allocations: 247.8 kB / 355.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.1201, allocations: 12.31 kB / 355.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.1201, allocations: 24.12 kB / 355.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.1205, allocations: 160.2 kB / 355.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1205, allocations: 3.984 kB / 355.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.1206, allocations: 4 kB / 355.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1206, allocations: 11.98 kB / 355.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002509/0.1208, allocations: 99.27 kB / 355.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.122, allocations: 0.6409 MB / 356.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002958/0.1223, allocations: 135.8 kB / 356.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.1225, allocations: 58.69 kB / 356.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.1225, allocations: 0 / 356.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.1226, allocations: 34.56 kB / 356.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.062e-06/0.1226, allocations: 4 kB / 356.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005967/0.1232, allocations: 185.3 kB / 356.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.834e-05/0.1233, allocations: 106.8 kB / 357 MB, free: 14.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.1235, allocations: 237.1 kB / 357.3 MB, free: 14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.1236, allocations: 25.7 kB / 357.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.1237, allocations: 136 kB / 357.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.384e-05/0.1238, allocations: 51.34 kB / 357.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.1239, allocations: 17.72 kB / 357.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.124, allocations: 334.8 kB / 357.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.1241, allocations: 47.88 kB / 357.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.1243, allocations: 102.8 kB / 358 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002826/0.1246, allocations: 154.7 kB / 358.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1246, allocations: 4 kB / 358.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000384/0.125, allocations: 181.3 kB / 358.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.125, allocations: 8 kB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.125, allocations: 3.984 kB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1251, allocations: 8.188 kB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.1252, allocations: 31.98 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.1253, allocations: 11.92 kB / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.1254, allocations: 28.3 kB / 358.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.1254, allocations: 4 kB / 358.4 MB, free: 12.79 MB / 302.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.0001724/0.1256, allocations: 130.2 kB / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.767e-05/0.1257, allocations: 23.81 kB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000463/0.1262, allocations: 190.8 kB / 358.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.1262, allocations: 7.938 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.1262, allocations: 4 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.1262, allocations: 0 / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005275/0.1268, allocations: 277.4 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1268, allocations: 4 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.127, allocations: 31.98 kB / 359 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.127, allocations: 4 kB / 359 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.127, allocations: 7.984 kB / 359.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.127, allocations: 7.938 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.127, allocations: 0 / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006673/0.1277, allocations: 481.7 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.1278, allocations: 104.8 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/0.1279, allocations: 3.984 kB / 359.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.1281, allocations: 16 kB / 359.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.477e-05/0.1281, allocations: 7.984 kB / 359.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.1282, allocations: 8 kB / 359.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002465/0.1284, allocations: 176.3 kB / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1284, allocations: 0 / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003866/0.1288, allocations: 32 kB / 359.9 MB, free: 11.21 MB / 302.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.0001584/0.129, allocations: 103.2 kB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004019/0.1294, allocations: 130.5 kB / 360.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1294, allocations: 0 / 360.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.1296, allocations: 68.28 kB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004658/0.1301, allocations: 20.38 kB / 360.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.1314, allocations: 0.7473 MB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.1319, allocations: 0.7439 MB / 361.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.792e-05/0.132, allocations: 29.45 kB / 361.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.797e-05/0.132, allocations: 19.44 kB / 361.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of SimCode: time 1.403e-06/0.132, allocations: 0 / 361.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of Templates: time 0.004546/0.1366, allocations: 1.224 MB / 363 MB, free: 8.074 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.Modulation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches