Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001544/0.001544, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001615/0.001616, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.453/1.453, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 73.41 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09312/0.09515, allocations: 50.53 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01431/0.1095, allocations: 12.16 MB / 370.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1537/0.2632, allocations: 3.302 MB / 373.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.2646, allocations: 36.72 kB / 373.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.2662, allocations: 0.6665 MB / 374.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001513/0.2677, allocations: 0.7243 MB / 375.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007843/0.2685, allocations: 407.2 kB / 375.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002749/0.2712, allocations: 2.399 MB / 378.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.2725, allocations: 0.9927 MB / 379.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.274, allocations: 0.9028 MB / 380 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001098/0.2751, allocations: 0.9868 MB / 381 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003243/0.2755, allocations: 229.2 kB / 381.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006342/0.2761, allocations: 266.6 kB / 381.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003188/0.2765, allocations: 460.8 kB / 381.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008632/0.2773, allocations: 1.074 MB / 383 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002842/0.2802, allocations: 2.801 MB / 385.8 MB, free: 6.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2802, allocations: 1.969 kB / 385.8 MB, free: 6.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2802, allocations: 0 / 385.8 MB, free: 6.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.046e-05/0.2803, allocations: 1.156 kB / 385.8 MB, free: 6.906 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.003779/0.2841, allocations: 2.15 MB / 388 MB, free: 5.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.2841, allocations: 8.969 kB / 388 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009337/0.2851, allocations: 284 kB / 388.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.2867, allocations: 1.104 MB / 389.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-05/0.2868, allocations: 117.6 kB / 389.5 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/0.287, allocations: 162.9 kB / 389.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.2893, allocations: 1.505 MB / 391.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.09e-05/0.2893, allocations: 15.73 kB / 391.2 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.2894, allocations: 62.5 kB / 391.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.344e-05/0.2895, allocations: 37.44 kB / 391.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001902/0.2914, allocations: 1.053 MB / 392.3 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007858/0.2993, allocations: 6.288 MB / 398.6 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.3009, allocations: 0.6164 MB / 399.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009324/0.3019, allocations: 464.2 kB / 399.7 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.456e-05/0.3019, allocations: 14.84 kB / 399.7 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.302, allocations: 46.95 kB / 399.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.705e-06/0.302, allocations: 0 / 399.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005595/0.3076, allocations: 2.372 MB / 402.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.154e-05/0.3077, allocations: 109.9 kB / 402.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.3095, allocations: 1.301 MB / 403.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.635e-05/0.3096, allocations: 39.17 kB / 403.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006962/0.3103, allocations: 0.8511 MB / 404.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002274/0.3105, allocations: 260.4 kB / 404.6 MB, free: 10.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002875/0.3108, allocations: 205 kB / 404.8 MB, free: 9.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.311, allocations: 353.1 kB / 405.2 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005858/0.3116, allocations: 283 kB / 405.5 MB, free: 9.406 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009873/0.3126, allocations: 0.7367 MB / 406.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001688/0.3143, allocations: 1.08 MB / 407.3 MB, free: 7.535 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.3143, allocations: 8 kB / 407.3 MB, free: 7.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002714/0.317, allocations: 1.264 MB / 408.6 MB, free: 6.246 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.3171, allocations: 14.03 kB / 408.6 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.457e-05/0.3171, allocations: 16 kB / 408.6 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005302/0.3177, allocations: 134.9 kB / 408.7 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008717/0.3185, allocations: 259.6 kB / 409 MB, free: 5.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004737/0.3233, allocations: 4.631 MB / 413.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.3245, allocations: 55.88 kB / 413.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-05/0.3246, allocations: 55.98 kB / 413.7 MB, free: 0.668 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.000756/0.3254, allocations: 371.2 kB / 414.1 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.3257, allocations: 142.2 kB / 414.2 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001961/0.3276, allocations: 0.8326 MB / 415 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3276, allocations: 4 kB / 415 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.3277, allocations: 7.938 kB / 415.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.3277, allocations: 3.984 kB / 415.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004389/0.3321, allocations: 2.333 MB / 417.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/0.3321, allocations: 4 kB / 417.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006071/0.3327, allocations: 124.3 kB / 417.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004634/0.3332, allocations: 138.4 kB / 417.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.199e-05/0.3333, allocations: 27.92 kB / 417.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004842/0.3381, allocations: 4.784 MB / 422.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.3381, allocations: 4 kB / 422.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.3407, allocations: 1.295 MB / 423.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005646/0.3413, allocations: 291.2 kB / 424 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.3415, allocations: 19.94 kB / 424.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006479/0.3422, allocations: 39.97 kB / 424.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.3423, allocations: 68.36 kB / 424.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.3424, allocations: 23.98 kB / 424.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001366/0.3437, allocations: 0.8742 MB / 425.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3437, allocations: 0 / 425.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00126/0.345, allocations: 332 kB / 425.4 MB, free: 4.32 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.0002677/0.3453, allocations: 137.4 kB / 425.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.3475, allocations: 1.141 MB / 426.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3475, allocations: 0 / 426.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.3486, allocations: 0.711 MB / 427.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.3504, allocations: 382.6 kB / 427.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005581/0.356, allocations: 2.974 MB / 430.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000971/0.357, allocations: 1.21 MB / 431.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003496/0.3573, allocations: 99.42 kB / 432 MB, free: 13.51 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3573, allocations: 0 / 432 MB, free: 13.51 MB / 350.1 MB Notification: Performance of Templates: time 0.0508/0.4081, allocations: 40.89 MB / 472.9 MB, free: 4.66 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches