Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009737/0.0009738, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008147/0.0008147, allocations: 100.6 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002965/0.0002965, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2589, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.00741/0.2664, allocations: 10.39 MB / 417.9 MB, free: 17.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004828/0.2713, allocations: 3.073 MB / 421 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.2725, allocations: 35.88 kB / 421 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001321/0.2739, allocations: 0.5126 MB / 421.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001385/0.2752, allocations: 0.5506 MB / 422.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006133/0.2759, allocations: 251.7 kB / 422.3 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.2774, allocations: 2.012 MB / 424.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008273/0.2782, allocations: 0.6869 MB / 425 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009902/0.2792, allocations: 0.665 MB / 425.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006388/0.2799, allocations: 0.7465 MB / 426.4 MB, free: 8.832 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.28, allocations: 100 kB / 426.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003525/0.2804, allocations: 140 kB / 426.7 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.2806, allocations: 294.6 kB / 426.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.2809, allocations: 388.8 kB / 427.3 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.2823, allocations: 2.107 MB / 429.4 MB, free: 5.809 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.2823, allocations: 0 / 429.4 MB, free: 5.809 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2823, allocations: 3.938 kB / 429.4 MB, free: 5.805 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.413e-05/0.2824, allocations: 0 / 429.4 MB, free: 5.805 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002784/0.2851, allocations: 1.775 MB / 431.2 MB, free: 3.965 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.2852, allocations: 12.03 kB / 431.2 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007839/0.286, allocations: 261.5 kB / 431.5 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/0.2873, allocations: 0.9772 MB / 432.5 MB, free: 2.676 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.336e-05/0.2874, allocations: 119 kB / 432.6 MB, free: 2.559 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.2876, allocations: 159.9 kB / 432.7 MB, free: 2.402 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002265/0.2899, allocations: 1.476 MB / 434.2 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.462e-05/0.2899, allocations: 11.84 kB / 434.2 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.29, allocations: 67.98 kB / 434.3 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/0.2901, allocations: 36 kB / 434.3 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.2918, allocations: 0.9786 MB / 435.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008689/0.3005, allocations: 6.598 MB / 441.9 MB, free: 8.805 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008087/0.3013, allocations: 412 kB / 442.3 MB, free: 8.391 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004022/0.3018, allocations: 227.1 kB / 442.5 MB, free: 8.172 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.689e-05/0.3018, allocations: 8.438 kB / 442.5 MB, free: 8.164 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005429/0.3024, allocations: 276.8 kB / 442.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.595e-06/0.3024, allocations: 0 / 442.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003131/0.3055, allocations: 1.777 MB / 444.6 MB, free: 6.004 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.3056, allocations: 166.8 kB / 444.7 MB, free: 5.805 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.3072, allocations: 1.257 MB / 446 MB, free: 4.531 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.949e-05/0.3073, allocations: 37.7 kB / 446 MB, free: 4.488 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000648/0.3079, allocations: 0.8712 MB / 446.9 MB, free: 3.605 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.3081, allocations: 205.2 kB / 447.1 MB, free: 3.402 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.476e-05/0.3081, allocations: 24 kB / 447.1 MB, free: 3.379 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3083, allocations: 353.9 kB / 447.5 MB, free: 3.027 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000441/0.3087, allocations: 234.5 kB / 447.7 MB, free: 2.797 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008206/0.3096, allocations: 0.7995 MB / 448.5 MB, free: 1.719 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006127/0.3102, allocations: 399.6 kB / 448.9 MB, free: 1.328 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.702e-05/0.3102, allocations: 4 kB / 448.9 MB, free: 1.324 MB / 314.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001751/0.312, allocations: 1.173 MB / 450.1 MB, free: 132 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.373e-05/0.312, allocations: 41.7 kB / 450.1 MB, free: 84 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.3121, allocations: 20 kB / 450.1 MB, free: 64 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002205/0.3123, allocations: 69.69 kB / 450.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007706/0.3131, allocations: 271.9 kB / 450.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/0.3149, allocations: 2.572 MB / 453 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008277/0.3157, allocations: 80.08 kB / 453.1 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.679e-05/0.3158, allocations: 60 kB / 453.2 MB, free: 12.75 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000542/0.3163, allocations: 365.3 kB / 453.5 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.3165, allocations: 134.3 kB / 453.7 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009873/0.3175, allocations: 0.5528 MB / 454.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3175, allocations: 15.94 kB / 454.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3175, allocations: 3.953 kB / 454.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3175, allocations: 0 / 454.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.3201, allocations: 1.885 MB / 456.1 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3201, allocations: 4 kB / 456.1 MB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004175/0.3205, allocations: 104.3 kB / 456.2 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001371/0.3207, allocations: 53.64 kB / 456.3 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/0.3207, allocations: 16 kB / 456.3 MB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001849/0.3226, allocations: 2.553 MB / 458.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.3226, allocations: 7.938 kB / 458.9 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.3241, allocations: 0.9304 MB / 459.8 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004054/0.3245, allocations: 251.5 kB / 460 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.3246, allocations: 20.12 kB / 460 MB, free: 5.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005179/0.3251, allocations: 35.97 kB / 460.1 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.3253, allocations: 59.83 kB / 460.1 MB, free: 5.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.3253, allocations: 15.98 kB / 460.2 MB, free: 5.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001275/0.3266, allocations: 0.8344 MB / 461 MB, free: 4.414 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3266, allocations: 0 / 461 MB, free: 4.414 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001189/0.3278, allocations: 304 kB / 461.3 MB, free: 4.117 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002973/0.3281, allocations: 136.2 kB / 461.4 MB, free: 3.977 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.3297, allocations: 0.9371 MB / 462.4 MB, free: 3.008 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3297, allocations: 0 / 462.4 MB, free: 3.008 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006807/0.3304, allocations: 462.2 kB / 462.8 MB, free: 2.531 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.3319, allocations: 330.6 kB / 463.1 MB, free: 2.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005392/0.3373, allocations: 3.12 MB / 466.3 MB, free: 15 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/0.3386, allocations: 1.185 MB / 467.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002831/0.3389, allocations: 91.44 kB / 467.5 MB, free: 13.69 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.3389, allocations: 0 / 467.5 MB, free: 13.69 MB / 346.7 MB Notification: Performance of Templates: time 0.0365/0.3754, allocations: 31.3 MB / 498.8 MB, free: 14.42 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches