Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001293/0.001293, allocations: 113.2 kB / 17.73 MB, free: 5.34 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.001267/0.001267, allocations: 184.2 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 51.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08315/0.08437, allocations: 46.62 MB / 375.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.1857/0.2701, allocations: 12.09 MB / 387.3 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006884/0.2771, allocations: 3.311 MB / 390.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001532/0.2787, allocations: 36.22 kB / 390.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.2804, allocations: 0.6623 MB / 391.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001578/0.282, allocations: 0.7197 MB / 392 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009173/0.2829, allocations: 408.4 kB / 392.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002243/0.2852, allocations: 2.414 MB / 394.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.2863, allocations: 1.002 MB / 395.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001223/0.2875, allocations: 0.907 MB / 396.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009735/0.2885, allocations: 0.9853 MB / 397.7 MB, free: 464 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002943/0.2888, allocations: 228.3 kB / 397.9 MB, free: 464 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005527/0.2894, allocations: 271.1 kB / 398.2 MB, free: 452 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002759/0.2897, allocations: 459.6 kB / 398.6 MB, free: 108 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.2907, allocations: 1.076 MB / 399.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003044/0.2938, allocations: 2.829 MB / 402.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2938, allocations: 1.375 kB / 402.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2938, allocations: 0 / 402.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.793e-05/0.2938, allocations: 0 / 402.5 MB, free: 14.34 MB / 334.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.00346/0.2973, allocations: 2.156 MB / 404.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.2974, allocations: 12.69 kB / 404.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008482/0.2982, allocations: 279.5 kB / 405 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.2999, allocations: 1.124 MB / 406.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-05/0.3, allocations: 117.9 kB / 406.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/0.3002, allocations: 165 kB / 406.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002308/0.3025, allocations: 1.499 MB / 407.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.85e-05/0.3026, allocations: 16.47 kB / 407.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.3027, allocations: 65.58 kB / 408 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.3027, allocations: 37.69 kB / 408 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.3046, allocations: 1.046 MB / 409 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007262/0.3119, allocations: 6.237 MB / 415.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.3134, allocations: 0.6161 MB / 415.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008409/0.3142, allocations: 465.6 kB / 416.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.804e-05/0.3143, allocations: 12.48 kB / 416.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.3143, allocations: 41.69 kB / 416.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.394e-06/0.3143, allocations: 1.125 kB / 416.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.004645/0.319, allocations: 2.366 MB / 418.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.3191, allocations: 110.3 kB / 418.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.3207, allocations: 1.314 MB / 420.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.359e-05/0.3208, allocations: 40.48 kB / 420.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005608/0.3214, allocations: 0.8422 MB / 421.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.3215, allocations: 272.2 kB / 421.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000261/0.3218, allocations: 206.7 kB / 421.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3219, allocations: 345.9 kB / 421.9 MB, free: 312 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005627/0.3225, allocations: 286.5 kB / 422.1 MB, free: 24 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008583/0.3234, allocations: 0.7343 MB / 422.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.3248, allocations: 1.088 MB / 424 MB, free: 13.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3248, allocations: 4 kB / 424 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002211/0.327, allocations: 1.264 MB / 425.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.3271, allocations: 8 kB / 425.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.3271, allocations: 16 kB / 425.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005063/0.3276, allocations: 138.7 kB / 425.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007794/0.3284, allocations: 251.6 kB / 425.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003645/0.332, allocations: 4.634 MB / 430.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009653/0.333, allocations: 55.91 kB / 430.3 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.122e-05/0.3331, allocations: 60.11 kB / 430.4 MB, free: 6.91 MB / 350.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.0005541/0.3337, allocations: 361.4 kB / 430.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002113/0.3339, allocations: 142.2 kB / 430.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/0.3356, allocations: 0.8256 MB / 431.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.3356, allocations: 16.02 kB / 431.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3356, allocations: 3.984 kB / 431.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3356, allocations: 3.984 kB / 431.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003675/0.3393, allocations: 2.327 MB / 434.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.288e-05/0.3393, allocations: 4 kB / 434.1 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005569/0.3399, allocations: 127.8 kB / 434.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004417/0.3404, allocations: 142.8 kB / 434.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-05/0.3404, allocations: 16 kB / 434.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004025/0.3444, allocations: 4.787 MB / 439.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.3445, allocations: 7.938 kB / 439.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002528/0.347, allocations: 1.296 MB / 440.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007311/0.3477, allocations: 283.3 kB / 440.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000286/0.348, allocations: 16 kB / 440.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007109/0.3488, allocations: 43.97 kB / 440.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.3489, allocations: 64.36 kB / 440.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-05/0.349, allocations: 20 kB / 440.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001421/0.3504, allocations: 0.8859 MB / 441.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3504, allocations: 0 / 441.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001368/0.3518, allocations: 324 kB / 442.1 MB, free: 10.57 MB / 366.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.0002856/0.3521, allocations: 140.3 kB / 442.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.354, allocations: 1.129 MB / 443.3 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.354, allocations: 384 / 443.3 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009626/0.355, allocations: 0.6991 MB / 444 MB, free: 8.527 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.3565, allocations: 374.1 kB / 444.4 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004877/0.3614, allocations: 2.894 MB / 447.3 MB, free: 5.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007898/0.3622, allocations: 1.214 MB / 448.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005474/0.3628, allocations: 175.6 kB / 448.7 MB, free: 3.773 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.363, allocations: 95.42 kB / 448.8 MB, free: 3.68 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.363, allocations: 0 / 448.8 MB, free: 3.68 MB / 366.1 MB Notification: Performance of Templates: time 0.0296/0.3926, allocations: 17.95 MB / 466.7 MB, free: 1.695 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches