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.001308/0.001308, allocations: 114.6 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 211.7 kB / 19.41 MB, free: 3.645 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.435/1.435, allocations: 227.7 MB / 247.9 MB, free: 10.18 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.001876/0.001876, allocations: 67.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2374, allocations: 50.55 MB / 410.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01417/0.2515, allocations: 12.19 MB / 422.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006379/0.2579, allocations: 3.315 MB / 425.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001319/0.2592, allocations: 35.94 kB / 425.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.2611, allocations: 0.6907 MB / 426.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.263, allocations: 0.7833 MB / 427.2 MB, free: 372 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008238/0.2639, allocations: 403.6 kB / 427.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002852/0.2667, allocations: 2.417 MB / 430 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.2678, allocations: 0.6535 MB / 430.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.2691, allocations: 0.9183 MB / 431.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001117/0.2702, allocations: 0.9762 MB / 432.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000299/0.2705, allocations: 232 kB / 432.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004611/0.2709, allocations: 268 kB / 433.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003765/0.2713, allocations: 462.3 kB / 433.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001064/0.2724, allocations: 1.077 MB / 434.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003124/0.2755, allocations: 2.848 MB / 437.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2755, allocations: 0 / 437.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2755, allocations: 0 / 437.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.855e-05/0.2756, allocations: 0 / 437.5 MB, free: 6.055 MB / 350.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.003979/0.2795, allocations: 2.205 MB / 439.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2796, allocations: 8.031 kB / 439.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000941/0.2805, allocations: 295.5 kB / 440 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001941/0.2824, allocations: 1.131 MB / 441.1 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-05/0.2825, allocations: 115.5 kB / 441.2 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002414/0.2828, allocations: 163.8 kB / 441.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/0.2854, allocations: 1.512 MB / 442.9 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.488e-05/0.2854, allocations: 4 kB / 442.9 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.2856, allocations: 63.94 kB / 442.9 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.2856, allocations: 40 kB / 443 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002159/0.2878, allocations: 1.053 MB / 444 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00865/0.2964, allocations: 6.247 MB / 450.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.298, allocations: 0.5568 MB / 450.8 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009874/0.299, allocations: 434.1 kB / 451.3 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.419e-05/0.299, allocations: 12.7 kB / 451.3 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.2991, allocations: 43.12 kB / 451.3 MB, free: 7.691 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.084e-06/0.2991, allocations: 0 / 451.3 MB, free: 7.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005215/0.3043, allocations: 2.391 MB / 453.7 MB, free: 5.215 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.3044, allocations: 111.5 kB / 453.8 MB, free: 5.082 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/0.3062, allocations: 1.31 MB / 455.1 MB, free: 3.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.313e-05/0.3063, allocations: 41.7 kB / 455.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007/0.307, allocations: 0.8671 MB / 456 MB, free: 2.836 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/0.3072, allocations: 277.7 kB / 456.3 MB, free: 2.562 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002824/0.3075, allocations: 206.8 kB / 456.5 MB, free: 2.355 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3077, allocations: 349.9 kB / 456.8 MB, free: 2.008 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005974/0.3083, allocations: 282.5 kB / 457.1 MB, free: 1.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009778/0.3092, allocations: 0.7342 MB / 457.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.3109, allocations: 1.096 MB / 459 MB, free: 15.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.3109, allocations: 8 kB / 459 MB, free: 15.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002477/0.3134, allocations: 1.26 MB / 460.2 MB, free: 14.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.3134, allocations: 12 kB / 460.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.3134, allocations: 16 kB / 460.3 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005224/0.314, allocations: 138.9 kB / 460.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008699/0.3148, allocations: 255.6 kB / 460.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004317/0.3192, allocations: 4.631 MB / 465.3 MB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009398/0.3201, allocations: 59.86 kB / 465.3 MB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.43e-05/0.3202, allocations: 60.06 kB / 465.4 MB, free: 8.598 MB / 382.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.0005964/0.3208, allocations: 365.3 kB / 465.7 MB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.321, allocations: 139.1 kB / 465.9 MB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.3229, allocations: 0.8257 MB / 466.7 MB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.3229, allocations: 15.88 kB / 466.7 MB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3229, allocations: 0 / 466.7 MB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.3229, allocations: 7.984 kB / 466.7 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004083/0.327, allocations: 2.319 MB / 469 MB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.327, allocations: 4 kB / 469 MB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006129/0.3276, allocations: 128.3 kB / 469.2 MB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004698/0.3281, allocations: 146.4 kB / 469.3 MB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.3281, allocations: 20 kB / 469.3 MB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004751/0.3329, allocations: 4.791 MB / 474.1 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/0.3329, allocations: 7.938 kB / 474.1 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002678/0.3355, allocations: 1.301 MB / 475.4 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005274/0.3361, allocations: 288.1 kB / 475.7 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.3362, allocations: 23.98 kB / 475.7 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006398/0.3369, allocations: 35.97 kB / 475.8 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.337, allocations: 60.38 kB / 475.8 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/0.3371, allocations: 31.98 kB / 475.9 MB, free: 13.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001386/0.3384, allocations: 0.8742 MB / 476.7 MB, free: 12.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3384, allocations: 0 / 476.7 MB, free: 12.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001234/0.3397, allocations: 331.9 kB / 477.1 MB, free: 12.25 MB / 398.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.0002483/0.3399, allocations: 139.3 kB / 477.2 MB, free: 12.1 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.342, allocations: 1.089 MB / 478.3 MB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.342, allocations: 4 kB / 478.3 MB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.3431, allocations: 0.6924 MB / 479 MB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001633/0.3447, allocations: 378 kB / 479.4 MB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005454/0.3502, allocations: 2.941 MB / 482.3 MB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008959/0.3511, allocations: 1.217 MB / 483.5 MB, free: 5.609 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006235/0.3517, allocations: 175.6 kB / 483.7 MB, free: 5.434 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002272/0.3519, allocations: 91.42 kB / 483.8 MB, free: 5.348 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3519, allocations: 3.938 kB / 483.8 MB, free: 5.344 MB / 398.1 MB Notification: Performance of Templates: time 0.03613/0.388, allocations: 18.14 MB / 0.4902 GB, free: 3.387 MB / 414.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 -s gbode -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