Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 110.9 kB / 17.74 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 192.5 kB / 18.67 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 43.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2725, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01234/0.2849, allocations: 12.15 MB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007122/0.2921, allocations: 3.276 MB / 416.8 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002052/0.2941, allocations: 39.88 kB / 416.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002508/0.2967, allocations: 0.6646 MB / 417.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003918/0.3007, allocations: 0.7364 MB / 418.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.3018, allocations: 403.5 kB / 418.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003351/0.3052, allocations: 2.405 MB / 421.1 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001404/0.3066, allocations: 0.9892 MB / 422.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001561/0.3082, allocations: 0.895 MB / 423 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.3094, allocations: 0.9839 MB / 423.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000261/0.3097, allocations: 228 kB / 424.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004884/0.3102, allocations: 272 kB / 424.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003355/0.3105, allocations: 454.3 kB / 424.9 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.3116, allocations: 1.085 MB / 426 MB, free: 184 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002543/0.3141, allocations: 2.823 MB / 428.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.3141, allocations: 3.984 kB / 428.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3141, allocations: 0 / 428.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.804e-05/0.3142, allocations: 0 / 428.8 MB, free: 13.34 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.003623/0.3178, allocations: 2.16 MB / 431 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3179, allocations: 8.031 kB / 431 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008729/0.3187, allocations: 282.4 kB / 431.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.3206, allocations: 1.126 MB / 432.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-05/0.3207, allocations: 119.5 kB / 432.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001984/0.3209, allocations: 159.8 kB / 432.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002427/0.3233, allocations: 1.504 MB / 434.1 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.972e-05/0.3234, allocations: 15.89 kB / 434.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.3235, allocations: 60 kB / 434.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-05/0.3235, allocations: 40 kB / 434.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001948/0.3255, allocations: 1.057 MB / 435.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008016/0.3335, allocations: 6.222 MB / 441.5 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.335, allocations: 0.601 MB / 442.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008737/0.3359, allocations: 466.3 kB / 442.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.48e-05/0.3359, allocations: 8.562 kB / 442.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.336, allocations: 43.06 kB / 442.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.886e-06/0.336, allocations: 0 / 442.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005123/0.3411, allocations: 2.372 MB / 445 MB, free: 12.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.3412, allocations: 111.5 kB / 445.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.3431, allocations: 1.306 MB / 446.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/0.3432, allocations: 37.7 kB / 446.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006324/0.3438, allocations: 0.857 MB / 447.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000204/0.344, allocations: 264.3 kB / 447.6 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002956/0.3443, allocations: 202.7 kB / 447.8 MB, free: 9.699 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3445, allocations: 341.9 kB / 448.1 MB, free: 9.359 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005632/0.3451, allocations: 294.5 kB / 448.4 MB, free: 9.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008636/0.3459, allocations: 0.7342 MB / 449.1 MB, free: 8.125 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.3474, allocations: 1.092 MB / 450.2 MB, free: 6.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.3475, allocations: 8 kB / 450.2 MB, free: 6.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002481/0.35, allocations: 1.26 MB / 451.5 MB, free: 5.535 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.35, allocations: 12 kB / 451.5 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.35, allocations: 15.94 kB / 451.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005753/0.3506, allocations: 135 kB / 451.6 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008025/0.3514, allocations: 255.6 kB / 451.9 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003929/0.3554, allocations: 4.65 MB / 456.5 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.3565, allocations: 63.94 kB / 456.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.458e-05/0.3566, allocations: 55.94 kB / 456.7 MB, free: 15.93 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.0005998/0.3572, allocations: 350.7 kB / 457 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.3574, allocations: 138.3 kB / 457.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.3591, allocations: 0.8256 MB / 458 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.3591, allocations: 11.94 kB / 458 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3591, allocations: 4 kB / 458 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.3591, allocations: 4.125 kB / 458 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004063/0.3632, allocations: 2.326 MB / 460.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.3632, allocations: 4 kB / 460.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005657/0.3638, allocations: 136.3 kB / 460.5 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005029/0.3643, allocations: 130.4 kB / 460.6 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-05/0.3644, allocations: 23.98 kB / 460.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004549/0.369, allocations: 4.787 MB / 465.4 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.798e-06/0.369, allocations: 7.938 kB / 465.4 MB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002671/0.3717, allocations: 1.292 MB / 466.7 MB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000702/0.3724, allocations: 287.3 kB / 467 MB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003462/0.3728, allocations: 16 kB / 467 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008156/0.3736, allocations: 35.97 kB / 467 MB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.3738, allocations: 68.36 kB / 467.1 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/0.3738, allocations: 20 kB / 467.1 MB, free: 4.812 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001637/0.3755, allocations: 0.882 MB / 468 MB, free: 3.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3755, allocations: 0 / 468 MB, free: 3.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001481/0.377, allocations: 328 kB / 468.3 MB, free: 3.609 MB / 382.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.000301/0.3773, allocations: 150.9 kB / 468.5 MB, free: 3.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.3794, allocations: 1.127 MB / 469.6 MB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3795, allocations: 0 / 469.6 MB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.3805, allocations: 0.7084 MB / 470.3 MB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.3824, allocations: 367 kB / 470.6 MB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005719/0.3882, allocations: 2.941 MB / 473.6 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009499/0.3891, allocations: 1.217 MB / 474.8 MB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003568/0.3895, allocations: 99.42 kB / 474.9 MB, free: 12.82 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3895, allocations: 0 / 474.9 MB, free: 12.82 MB / 398.1 MB Notification: Performance of Templates: time 0.05421/0.4437, allocations: 40.88 MB / 0.5037 GB, free: 3.988 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches