Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009303/0.0009302, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002474/0.0002474, allocations: 8 kB / 308.4 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09017/0.09043, allocations: 51.52 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00673/0.0972, allocations: 6.675 MB / 366.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003778/0.101, allocations: 2.337 MB / 368.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007448/0.1018, allocations: 19.94 kB / 368.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00138/0.1032, allocations: 441.7 kB / 369.4 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.1043, allocations: 337.6 kB / 369.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004637/0.1048, allocations: 179.8 kB / 369.9 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.1061, allocations: 1.136 MB / 371 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006613/0.1068, allocations: 434.7 kB / 371.4 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006247/0.1074, allocations: 390.1 kB / 371.8 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005579/0.108, allocations: 433.8 kB / 372.2 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.1081, allocations: 56 kB / 372.3 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002699/0.1084, allocations: 95.91 kB / 372.4 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1086, allocations: 159.2 kB / 372.5 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004935/0.1091, allocations: 0.4953 MB / 373 MB, free: 96 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1565/0.2655, allocations: 1.122 MB / 374.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.2656, allocations: 0 / 374.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.2656, allocations: 1.062 kB / 374.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.858e-05/0.2657, allocations: 0 / 374.2 MB, free: 11.91 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002379/0.2681, allocations: 1.094 MB / 375.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.2681, allocations: 9.062 kB / 375.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006653/0.2688, allocations: 146.1 kB / 375.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.2698, allocations: 0.6333 MB / 376 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.041e-05/0.2699, allocations: 61.06 kB / 376.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.27, allocations: 83.91 kB / 376.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.2716, allocations: 0.7848 MB / 377 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.545e-05/0.2716, allocations: 7.828 kB / 377 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.862e-05/0.2717, allocations: 31.34 kB / 377 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.2717, allocations: 23.28 kB / 377 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.2728, allocations: 0.5313 MB / 377.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004009/0.2768, allocations: 3.409 MB / 381 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005096/0.2774, allocations: 237.4 kB / 381.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/0.2776, allocations: 122.2 kB / 381.3 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.2776, allocations: 7.469 kB / 381.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.693e-05/0.2777, allocations: 34.5 kB / 381.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.2777, allocations: 0 / 381.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002067/0.2798, allocations: 1.083 MB / 382.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.2798, allocations: 81.14 kB / 382.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000944/0.2808, allocations: 0.7418 MB / 383.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.2808, allocations: 31.02 kB / 383.3 MB, free: 8.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002764/0.2811, allocations: 499.7 kB / 383.8 MB, free: 7.945 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.676e-05/0.2811, allocations: 116.8 kB / 383.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.28e-05/0.2812, allocations: 49.62 kB / 384 MB, free: 7.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.2813, allocations: 381 kB / 384.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002632/0.2816, allocations: 132.5 kB / 384.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003647/0.282, allocations: 425.8 kB / 384.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006532/0.2826, allocations: 0.5858 MB / 385.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.2826, allocations: 3.625 kB / 385.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001007/0.2837, allocations: 0.6265 MB / 386.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.2837, allocations: 12.31 kB / 386.1 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.2837, allocations: 9.938 kB / 386.1 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001481/0.2839, allocations: 34.28 kB / 386.1 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004364/0.2843, allocations: 141.3 kB / 386.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007408/0.2851, allocations: 1.295 MB / 387.6 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005407/0.2856, allocations: 35.97 kB / 387.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.2857, allocations: 34.69 kB / 387.6 MB, free: 5.137 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003635/0.286, allocations: 243 kB / 387.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.279e-05/0.2861, allocations: 72.91 kB / 387.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006587/0.2868, allocations: 328.7 kB / 388.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.2868, allocations: 4.156 kB / 388.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2868, allocations: 1 kB / 388.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2868, allocations: 9.938 kB / 388.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.2885, allocations: 1.128 MB / 389.4 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.2885, allocations: 2.094 kB / 389.4 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.2887, allocations: 60.19 kB / 389.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.063e-05/0.2888, allocations: 23.47 kB / 389.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.2889, allocations: 8.875 kB / 389.5 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005798/0.2894, allocations: 1.264 MB / 390.8 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.2895, allocations: 8.875 kB / 390.8 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008224/0.2903, allocations: 0.5819 MB / 391.4 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.2905, allocations: 168.2 kB / 391.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.713e-05/0.2906, allocations: 12.12 kB / 391.5 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/0.2909, allocations: 25.73 kB / 391.6 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.291, allocations: 28.23 kB / 391.6 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.291, allocations: 6.438 kB / 391.6 MB, free: 2.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006295/0.2916, allocations: 0.5018 MB / 392.1 MB, free: 2.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.2916, allocations: 0 / 392.1 MB, free: 2.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007429/0.2924, allocations: 165.9 kB / 392.3 MB, free: 2.012 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001721/0.2926, allocations: 118.5 kB / 392.4 MB, free: 1.918 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008774/0.2934, allocations: 483.8 kB / 392.8 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2935, allocations: 0 / 392.8 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003396/0.2938, allocations: 247.8 kB / 393.1 MB, free: 1.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.2949, allocations: 168.1 kB / 393.3 MB, free: 1.523 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.2972, allocations: 1.883 MB / 395.1 MB, free: 276 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.2977, allocations: 0.9353 MB / 396.1 MB, free: 15.56 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2978, allocations: 50.25 kB / 396.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2978, allocations: 4 kB / 396.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of Templates: time 0.01912/0.317, allocations: 13.27 MB / 409.4 MB, free: 6.324 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches