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.0009301/0.0009302, allocations: 92.44 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 205 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.7 MB / 246.8 MB, free: 9.664 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.000245, allocations: 8 kB / 307.7 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1017, allocations: 51.52 MB / 359.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01105/0.1128, allocations: 11.49 MB / 370.7 MB, free: 1.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1822/0.295, allocations: 3.248 MB / 374 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.2964, allocations: 35.56 kB / 374 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001735/0.2981, allocations: 0.5686 MB / 374.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002831/0.3009, allocations: 0.6319 MB / 375.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.3021, allocations: 359.1 kB / 375.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003107/0.3052, allocations: 2.273 MB / 377.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.3065, allocations: 0.86 MB / 378.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001531/0.308, allocations: 0.7509 MB / 379.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.309, allocations: 0.8465 MB / 380.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002195/0.3093, allocations: 107 kB / 380.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004934/0.3098, allocations: 142.7 kB / 380.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002831/0.3101, allocations: 329.9 kB / 380.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.3111, allocations: 0.9569 MB / 381.8 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003029/0.3141, allocations: 2.65 MB / 384.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3141, allocations: 4 kB / 384.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3141, allocations: 0 / 384.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.428e-05/0.3142, allocations: 0 / 384.5 MB, free: 7.391 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.003491/0.3177, allocations: 1.83 MB / 386.3 MB, free: 6.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3178, allocations: 10.12 kB / 386.3 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000926/0.3187, allocations: 287.5 kB / 386.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001634/0.3203, allocations: 1.106 MB / 387.7 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.1e-05/0.3204, allocations: 113.4 kB / 387.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002116/0.3206, allocations: 165 kB / 388 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002725/0.3234, allocations: 1.523 MB / 389.5 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.042e-05/0.3234, allocations: 8.125 kB / 389.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.3236, allocations: 65.78 kB / 389.6 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.744e-05/0.3236, allocations: 39.19 kB / 389.6 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/0.3257, allocations: 1.073 MB / 390.7 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008233/0.334, allocations: 6.31 MB / 397 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.3356, allocations: 0.6337 MB / 397.6 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009444/0.3366, allocations: 466.1 kB / 398.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.448e-05/0.3367, allocations: 12.22 kB / 398.1 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/0.3367, allocations: 43.38 kB / 398.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.575e-06/0.3367, allocations: 4 kB / 398.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.006036/0.3428, allocations: 2.464 MB / 400.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/0.3429, allocations: 111.7 kB / 400.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002055/0.3449, allocations: 1.304 MB / 402 MB, free: 11.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.154e-05/0.345, allocations: 36.39 kB / 402.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006633/0.3457, allocations: 0.8464 MB / 402.9 MB, free: 10.78 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.3459, allocations: 262.9 kB / 403.2 MB, free: 10.56 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.346, allocations: 93.66 kB / 403.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3462, allocations: 352.6 kB / 403.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006149/0.3468, allocations: 293.8 kB / 403.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008869/0.3477, allocations: 0.7536 MB / 404.6 MB, free: 9.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.3493, allocations: 1.11 MB / 405.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3493, allocations: 8.906 kB / 405.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002784/0.3521, allocations: 1.298 MB / 407 MB, free: 7.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.3522, allocations: 12.5 kB / 407.1 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.3522, allocations: 20 kB / 407.1 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005479/0.3527, allocations: 146.4 kB / 407.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000888/0.3536, allocations: 259.6 kB / 407.5 MB, free: 6.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003957/0.3576, allocations: 4.324 MB / 411.8 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.359, allocations: 63.88 kB / 411.9 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.972e-05/0.3591, allocations: 59.94 kB / 411.9 MB, free: 2 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008081/0.3599, allocations: 361.3 kB / 412.3 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003513/0.3602, allocations: 138.3 kB / 412.4 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002251/0.3625, allocations: 0.8647 MB / 413.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.3625, allocations: 8 kB / 413.3 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3625, allocations: 7.922 kB / 413.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3625, allocations: 0 / 413.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004882/0.3674, allocations: 2.382 MB / 415.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.3675, allocations: 8.094 kB / 415.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006928/0.3682, allocations: 127.9 kB / 415.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005213/0.3687, allocations: 142.4 kB / 415.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.271e-05/0.3688, allocations: 16 kB / 416 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004612/0.3734, allocations: 4.458 MB / 420.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.3734, allocations: 4 kB / 420.4 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003015/0.3764, allocations: 1.35 MB / 421.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008259/0.3773, allocations: 279.4 kB / 422 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005744/0.3779, allocations: 20 kB / 422.1 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.3791, allocations: 43.97 kB / 422.1 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/0.3793, allocations: 64.36 kB / 422.2 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.586e-05/0.3793, allocations: 23.98 kB / 422.2 MB, free: 7.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00195/0.3813, allocations: 0.8859 MB / 423.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3813, allocations: 0 / 423.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001784/0.3831, allocations: 324 kB / 423.4 MB, free: 5.887 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002939/0.3834, allocations: 145.3 kB / 423.5 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002325/0.3857, allocations: 1.133 MB / 424.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.3857, allocations: 3.938 kB / 424.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.3869, allocations: 0.7188 MB / 425.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003264/0.3902, allocations: 353.3 kB / 425.7 MB, free: 3.473 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007561/0.3978, allocations: 3.766 MB / 429.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.3992, allocations: 1.225 MB / 430.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001113/0.4003, allocations: 171.6 kB / 430.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/0.4007, allocations: 87.42 kB / 431 MB, free: 14.12 MB / 350.1 MB Notification: Performance of SimCode: time 1.422e-06/0.4008, allocations: 0 / 431 MB, free: 14.12 MB / 350.1 MB Notification: Performance of Templates: time 0.03285/0.4336, allocations: 16.66 MB / 447.6 MB, free: 13.64 MB / 366.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches