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.001419/0.001419, allocations: 114.9 kB / 17.69 MB, free: 5.309 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.001484/0.001484, allocations: 192 kB / 18.63 MB, free: 4.375 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.363/1.363, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000977/0.0009771, allocations: 51.58 kB / 302.1 MB, free: 5.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/0.09158, allocations: 49.45 MB / 351.5 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01214/0.1038, allocations: 12.14 MB / 363.7 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006145/0.1099, allocations: 3.284 MB / 366.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.1113, allocations: 35.94 kB / 367 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001684/0.1131, allocations: 0.6672 MB / 367.6 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.115, allocations: 0.7209 MB / 368.4 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009195/0.1159, allocations: 407.4 kB / 368.8 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1705/0.2865, allocations: 2.417 MB / 371.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/0.2881, allocations: 0.9865 MB / 372.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.2895, allocations: 0.897 MB / 373.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001121/0.2906, allocations: 0.9853 MB / 374 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003309/0.291, allocations: 229.9 kB / 374.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004943/0.2915, allocations: 266.2 kB / 374.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003103/0.2918, allocations: 458.4 kB / 375 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008659/0.2927, allocations: 1.078 MB / 376.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002897/0.2956, allocations: 2.83 MB / 378.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2956, allocations: 0 / 378.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2956, allocations: 1.031 kB / 378.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.564e-05/0.2957, allocations: 1.688 kB / 378.9 MB, free: 11.18 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.004295/0.3, allocations: 2.158 MB / 381 MB, free: 10.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3001, allocations: 11.06 kB / 381.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009348/0.301, allocations: 281.2 kB / 381.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/0.3027, allocations: 1.128 MB / 382.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.054e-05/0.3028, allocations: 112 kB / 382.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.303, allocations: 157.1 kB / 382.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.3056, allocations: 1.508 MB / 384.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.426e-05/0.3057, allocations: 12.14 kB / 384.2 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.3059, allocations: 66.5 kB / 384.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.839e-05/0.3059, allocations: 37.97 kB / 384.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002177/0.3081, allocations: 1.045 MB / 385.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008028/0.3161, allocations: 6.232 MB / 391.6 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.3176, allocations: 0.6235 MB / 392.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009009/0.3186, allocations: 451.4 kB / 392.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.652e-05/0.3186, allocations: 11.97 kB / 392.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.3187, allocations: 46.44 kB / 392.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.154e-06/0.3187, allocations: 0 / 392.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004529/0.3232, allocations: 2.375 MB / 395.1 MB, free: 1.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.3233, allocations: 111.1 kB / 395.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.3251, allocations: 1.293 MB / 396.5 MB, free: 1.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.757e-05/0.3252, allocations: 41.64 kB / 396.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004674/0.3256, allocations: 0.8528 MB / 397.4 MB, free: 272 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001622/0.3258, allocations: 260.9 kB / 397.7 MB, free: 44 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003445/0.3262, allocations: 210.2 kB / 397.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3263, allocations: 347.2 kB / 398.2 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005988/0.3269, allocations: 288.3 kB / 398.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008859/0.3278, allocations: 0.7391 MB / 399.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.3293, allocations: 1.077 MB / 400.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.3293, allocations: 10.38 kB / 400.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002251/0.3315, allocations: 1.263 MB / 401.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.3316, allocations: 13.25 kB / 401.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.3316, allocations: 12.66 kB / 401.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005231/0.3321, allocations: 134.4 kB / 401.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/0.3329, allocations: 258.2 kB / 402 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003765/0.3367, allocations: 4.652 MB / 406.6 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.3379, allocations: 52.3 kB / 406.7 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.176e-05/0.3379, allocations: 62.89 kB / 406.8 MB, free: 8.445 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.0006996/0.3387, allocations: 361.4 kB / 407.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.3388, allocations: 136.7 kB / 407.2 MB, free: 8.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001701/0.3406, allocations: 0.8257 MB / 408.1 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3406, allocations: 11.94 kB / 408.1 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3406, allocations: 3.938 kB / 408.1 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.3406, allocations: 11.92 kB / 408.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00382/0.3444, allocations: 2.325 MB / 410.4 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.3444, allocations: 4 kB / 410.4 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006181/0.3451, allocations: 132.3 kB / 410.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005826/0.3457, allocations: 132.9 kB / 410.7 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.036e-05/0.3458, allocations: 20 kB / 410.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004189/0.35, allocations: 4.776 MB / 415.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.35, allocations: 15.77 kB / 415.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.3523, allocations: 1.299 MB / 416.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007226/0.353, allocations: 287.3 kB / 417.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003163/0.3534, allocations: 19.94 kB / 417.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007979/0.3542, allocations: 35.97 kB / 417.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3543, allocations: 68.17 kB / 417.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.367e-05/0.3544, allocations: 20 kB / 417.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001387/0.3558, allocations: 0.8781 MB / 418.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3558, allocations: 0 / 418.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001405/0.3572, allocations: 332 kB / 418.4 MB, free: 12.57 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.0002373/0.3574, allocations: 142 kB / 418.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.3593, allocations: 1.123 MB / 419.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3594, allocations: 0 / 419.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.3604, allocations: 0.7095 MB / 420.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.362, allocations: 365.2 kB / 420.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005096/0.3671, allocations: 2.895 MB / 423.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009135/0.368, allocations: 1.217 MB / 424.9 MB, free: 6.047 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000603/0.3686, allocations: 171.6 kB / 425 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.3689, allocations: 91.42 kB / 425.1 MB, free: 5.785 MB / 334.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3689, allocations: 0 / 425.1 MB, free: 5.785 MB / 334.1 MB Notification: Performance of Templates: time 0.03066/0.3996, allocations: 17.67 MB / 442.8 MB, free: 4.367 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 gbode -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