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.001166/0.001166, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001054/0.001054, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.372/1.372, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 46.11 kB / 302.1 MB, free: 5.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09741, allocations: 49.43 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.016/0.1135, allocations: 12.16 MB / 363.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007139/0.1206, allocations: 3.28 MB / 366.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.1224, allocations: 35.94 kB / 367 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.1243, allocations: 0.675 MB / 367.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.1262, allocations: 0.7247 MB / 368.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007841/0.127, allocations: 395.5 kB / 368.8 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1665/0.2935, allocations: 2.408 MB / 371.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.2956, allocations: 0.9946 MB / 372.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002047/0.2977, allocations: 0.9019 MB / 373.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002731/0.3004, allocations: 0.9755 MB / 374 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000912/0.3014, allocations: 229.8 kB / 374.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001145/0.3025, allocations: 271.3 kB / 374.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004096/0.303, allocations: 458.5 kB / 375 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.3042, allocations: 1.075 MB / 376 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003314/0.3075, allocations: 2.833 MB / 378.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3075, allocations: 1.062 kB / 378.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3075, allocations: 0 / 378.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.742e-05/0.3076, allocations: 0 / 378.9 MB, free: 11.21 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.004097/0.3117, allocations: 2.159 MB / 381 MB, free: 10.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.3117, allocations: 9.344 kB / 381 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/0.3128, allocations: 283 kB / 381.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.3148, allocations: 1.122 MB / 382.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.315, allocations: 113.8 kB / 382.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002651/0.3152, allocations: 159.6 kB / 382.7 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/0.3177, allocations: 1.507 MB / 384.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.779e-05/0.3178, allocations: 19.16 kB / 384.2 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.3179, allocations: 65.19 kB / 384.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.183e-05/0.318, allocations: 38.38 kB / 384.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.3201, allocations: 1.045 MB / 385.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007576/0.3277, allocations: 6.227 MB / 391.6 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.3292, allocations: 0.6158 MB / 392.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007826/0.33, allocations: 457.9 kB / 392.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.968e-05/0.33, allocations: 16.02 kB / 392.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.3301, allocations: 55.14 kB / 392.7 MB, free: 3.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.264e-06/0.3301, allocations: 0 / 392.7 MB, free: 3.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004903/0.335, allocations: 2.357 MB / 395.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.335, allocations: 115.6 kB / 395.2 MB, free: 1.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/0.3367, allocations: 1.297 MB / 396.5 MB, free: 1.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.01e-05/0.3368, allocations: 36.45 kB / 396.5 MB, free: 1.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/0.3372, allocations: 0.8537 MB / 397.4 MB, free: 260 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.3373, allocations: 268.3 kB / 397.7 MB, free: 28 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003206/0.3377, allocations: 203.8 kB / 397.9 MB, free: 15.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3378, allocations: 355.2 kB / 398.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005857/0.3384, allocations: 281.1 kB / 398.5 MB, free: 15.42 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008108/0.3392, allocations: 0.7414 MB / 399.2 MB, free: 14.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.3406, allocations: 1.082 MB / 400.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3406, allocations: 3.219 kB / 400.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002278/0.3429, allocations: 1.263 MB / 401.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.343, allocations: 10.56 kB / 401.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.343, allocations: 17.34 kB / 401.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005079/0.3435, allocations: 132.5 kB / 401.7 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007841/0.3443, allocations: 259.5 kB / 402 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003778/0.3481, allocations: 4.64 MB / 406.6 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.3494, allocations: 60.91 kB / 406.7 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.584e-05/0.3495, allocations: 56.34 kB / 406.7 MB, free: 8.414 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.0007464/0.3502, allocations: 362.1 kB / 407.1 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002592/0.3505, allocations: 139.9 kB / 407.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/0.3523, allocations: 0.8295 MB / 408.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.3523, allocations: 8 kB / 408.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3524, allocations: 0 / 408.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.3524, allocations: 11.92 kB / 408.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003926/0.3563, allocations: 2.327 MB / 410.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.3563, allocations: 4 kB / 410.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005786/0.3569, allocations: 128.5 kB / 410.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000445/0.3574, allocations: 141 kB / 410.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.736e-05/0.3574, allocations: 19.98 kB / 410.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003921/0.3614, allocations: 4.784 MB / 415.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.3614, allocations: 11.94 kB / 415.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.3637, allocations: 1.297 MB / 416.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005837/0.3643, allocations: 279.4 kB / 417.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.3644, allocations: 23.94 kB / 417.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/0.3651, allocations: 36.11 kB / 417.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.3652, allocations: 67.03 kB / 417.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/0.3653, allocations: 31.98 kB / 417.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001243/0.3665, allocations: 0.8768 MB / 418.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3665, allocations: 0 / 418.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001233/0.3678, allocations: 328 kB / 418.4 MB, free: 12.47 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.0002153/0.368, allocations: 132.5 kB / 418.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.3697, allocations: 1.125 MB / 419.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3698, allocations: 0 / 419.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009362/0.3707, allocations: 0.7173 MB / 420.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.3722, allocations: 359.9 kB / 420.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004717/0.3769, allocations: 2.901 MB / 423.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007749/0.3777, allocations: 1.217 MB / 424.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005511/0.3782, allocations: 171.6 kB / 425 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.3784, allocations: 91.42 kB / 425.1 MB, free: 5.68 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3785, allocations: 0 / 425.1 MB, free: 5.68 MB / 334.1 MB Notification: Performance of Templates: time 0.03064/0.4091, allocations: 17.67 MB / 442.8 MB, free: 4.262 MB / 350.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 -s cvode -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