Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001147/0.001147, allocations: 99.02 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001434/0.001434, allocations: 199.5 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002328/0.0002329, allocations: 4 kB / 306.6 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1118, allocations: 51.5 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01136/0.1232, allocations: 9.666 MB / 367.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006626/0.1299, allocations: 3.233 MB / 371 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001847/0.1317, allocations: 35.88 kB / 371 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.1337, allocations: 0.5207 MB / 371.5 MB, free: 444 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2046/0.3383, allocations: 0.7597 MB / 372.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.3395, allocations: 245.9 kB / 372.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.3432, allocations: 1.692 MB / 374.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.3442, allocations: 0.6888 MB / 374.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.3453, allocations: 0.6842 MB / 375.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009272/0.3462, allocations: 0.7637 MB / 376.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001815/0.3464, allocations: 104.4 kB / 376.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004162/0.3469, allocations: 136.7 kB / 376.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002629/0.3471, allocations: 291 kB / 376.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003609/0.3475, allocations: 405 kB / 377.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002482/0.35, allocations: 2.132 MB / 379.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.35, allocations: 0 / 379.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.35, allocations: 0 / 379.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.546e-05/0.35, allocations: 0 / 379.4 MB, free: 9.957 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003101/0.3532, allocations: 1.828 MB / 381.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3532, allocations: 9.219 kB / 381.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000689/0.3539, allocations: 256.4 kB / 381.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.3557, allocations: 1.077 MB / 382.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.516e-05/0.3558, allocations: 114.5 kB / 382.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001996/0.356, allocations: 164.3 kB / 382.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002663/0.3587, allocations: 1.467 MB / 384.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.963e-05/0.3587, allocations: 11.09 kB / 384.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.3589, allocations: 64.53 kB / 384.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.5e-05/0.3589, allocations: 37.94 kB / 384.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002077/0.361, allocations: 1.013 MB / 385.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007037/0.3681, allocations: 6.159 MB / 391.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.3693, allocations: 0.564 MB / 392.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.3693, allocations: 18.7 kB / 392.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.3694, allocations: 39.38 kB / 392.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.856e-06/0.3694, allocations: 2.625 kB / 392.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004467/0.3738, allocations: 2.265 MB / 394.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.3739, allocations: 119.7 kB / 394.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/0.3754, allocations: 1.183 MB / 395.8 MB, free: 2.438 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.217e-05/0.3755, allocations: 40.45 kB / 395.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004725/0.376, allocations: 0.8527 MB / 396.7 MB, free: 1.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.3761, allocations: 257.1 kB / 396.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.3762, allocations: 25.5 kB / 396.9 MB, free: 1.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9e-05/0.3763, allocations: 347.6 kB / 397.3 MB, free: 1.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005321/0.3768, allocations: 273 kB / 397.5 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007324/0.3775, allocations: 0.7166 MB / 398.3 MB, free: 188 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007226/0.3783, allocations: 387.5 kB / 398.6 MB, free: 0 / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.3783, allocations: 8.406 kB / 398.7 MB, free: 15.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.002384/0.3807, allocations: 1.222 MB / 399.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.3807, allocations: 13.09 kB / 399.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.3808, allocations: 15.31 kB / 399.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004019/0.3812, allocations: 117.9 kB / 400 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008417/0.382, allocations: 260 kB / 400.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003419/0.3855, allocations: 4.197 MB / 404.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008418/0.3863, allocations: 56.2 kB / 404.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.514e-05/0.3864, allocations: 58.61 kB / 404.6 MB, free: 10.93 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005976/0.387, allocations: 354.2 kB / 404.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.3872, allocations: 147.7 kB / 405.1 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.3887, allocations: 0.785 MB / 405.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.3887, allocations: 8.781 kB / 405.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3887, allocations: 3.953 kB / 405.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3888, allocations: 7.922 kB / 405.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003337/0.3921, allocations: 2.172 MB / 408 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.3921, allocations: 7.984 kB / 408.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005617/0.3927, allocations: 128.2 kB / 408.2 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003184/0.393, allocations: 114.5 kB / 408.3 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.453e-05/0.3931, allocations: 19.98 kB / 408.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003444/0.3965, allocations: 4.317 MB / 412.6 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3965, allocations: 8.016 kB / 412.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.3987, allocations: 1.428 MB / 414.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003892/0.3991, allocations: 255.4 kB / 414.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.3993, allocations: 20 kB / 414.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005797/0.3999, allocations: 39.97 kB / 414.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.4, allocations: 68.38 kB / 414.4 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.942e-05/0.4, allocations: 20 kB / 414.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00112/0.4012, allocations: 0.7766 MB / 415.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4012, allocations: 0 / 415.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001331/0.4025, allocations: 320 kB / 415.5 MB, free: 364 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002505/0.4028, allocations: 142 kB / 415.7 MB, free: 212 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.4045, allocations: 1.093 MB / 416.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4045, allocations: 0 / 416.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008889/0.4054, allocations: 0.6884 MB / 417.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.4068, allocations: 333.9 kB / 417.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004711/0.4115, allocations: 3.452 MB / 421.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007224/0.4122, allocations: 1.245 MB / 422.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000625/0.4129, allocations: 179.4 kB / 422.7 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.4131, allocations: 87.42 kB / 422.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4131, allocations: 0 / 422.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of Templates: time 0.029/0.4421, allocations: 14.65 MB / 437.4 MB, free: 10.51 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches