Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001418/0.001418, allocations: 175 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009588/0.0009588, allocations: 90.7 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003278/0.0003279, allocations: 19.98 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.224, allocations: 47.56 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009515/0.2336, allocations: 10.71 MB / 385.8 MB, free: 37.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006486/0.2401, allocations: 3.124 MB / 388.9 MB, free: 34.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002697/0.2428, allocations: 39.41 kB / 389 MB, free: 34.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002633/0.2455, allocations: 0.5163 MB / 389.5 MB, free: 34.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003393/0.2489, allocations: 0.6025 MB / 390.1 MB, free: 33.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.2503, allocations: 240.7 kB / 390.3 MB, free: 33.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003482/0.2538, allocations: 2.235 MB / 392.6 MB, free: 31.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00174/0.2555, allocations: 0.8554 MB / 393.4 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001474/0.257, allocations: 0.7233 MB / 394.1 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001424/0.2584, allocations: 0.8087 MB / 394.9 MB, free: 28.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005264/0.259, allocations: 108 kB / 395 MB, free: 28.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008898/0.2599, allocations: 144 kB / 395.2 MB, free: 28.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003833/0.2603, allocations: 310.5 kB / 395.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.2619, allocations: 0.9231 MB / 396.4 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002214/0.2641, allocations: 2.22 MB / 398.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.2641, allocations: 7.938 kB / 398.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2641, allocations: 0 / 398.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000117/0.2643, allocations: 0 / 398.6 MB, free: 25.06 MB / 298.7 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.003555/0.2678, allocations: 1.833 MB / 400.5 MB, free: 23.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.2679, allocations: 12.03 kB / 400.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001135/0.269, allocations: 286.4 kB / 400.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001908/0.271, allocations: 1.107 MB / 401.9 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.844e-05/0.271, allocations: 115.5 kB / 402 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/0.2712, allocations: 167.8 kB / 402.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.2734, allocations: 1.5 MB / 403.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.76e-05/0.2735, allocations: 11.84 kB / 403.7 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.2736, allocations: 64 kB / 403.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.2736, allocations: 40 kB / 403.8 MB, free: 19.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001865/0.2755, allocations: 1.053 MB / 404.8 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007508/0.283, allocations: 6.323 MB / 411.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.2844, allocations: 0.6277 MB / 411.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007661/0.2852, allocations: 474.2 kB / 412.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.956e-05/0.2853, allocations: 4.562 kB / 412.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.2853, allocations: 43.12 kB / 412.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 2.545e-06/0.2853, allocations: 0 / 412.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.004743/0.2901, allocations: 2.458 MB / 414.7 MB, free: 8.371 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.2902, allocations: 119.4 kB / 414.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001863/0.292, allocations: 1.298 MB / 416.1 MB, free: 6.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.289e-05/0.2921, allocations: 37.7 kB / 416.2 MB, free: 6.871 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004258/0.2925, allocations: 0.8492 MB / 417 MB, free: 6.012 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.2927, allocations: 260.3 kB / 417.3 MB, free: 5.754 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.2928, allocations: 24 kB / 417.3 MB, free: 5.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.697e-05/0.2929, allocations: 349.9 kB / 417.7 MB, free: 5.383 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/0.2934, allocations: 290.5 kB / 417.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006913/0.2941, allocations: 0.7421 MB / 418.7 MB, free: 4.145 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/0.2955, allocations: 1.108 MB / 419.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/0.2955, allocations: 4 kB / 419.8 MB, free: 2.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002299/0.2978, allocations: 1.291 MB / 421.1 MB, free: 1.512 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.2978, allocations: 12 kB / 421.1 MB, free: 1.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.2979, allocations: 16 kB / 421.1 MB, free: 1.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005116/0.2984, allocations: 143 kB / 421.2 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007883/0.2992, allocations: 267.5 kB / 421.5 MB, free: 1.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003862/0.3031, allocations: 4.313 MB / 425.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.3042, allocations: 68 kB / 425.9 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.3043, allocations: 55.94 kB / 425.9 MB, free: 12.24 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007692/0.3051, allocations: 357.4 kB / 426.3 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000313/0.3054, allocations: 134.3 kB / 426.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002064/0.3075, allocations: 0.8725 MB / 427.3 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.3075, allocations: 8 kB / 427.3 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3075, allocations: 0 / 427.3 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.3076, allocations: 3.984 kB / 427.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004562/0.3121, allocations: 2.373 MB / 429.7 MB, free: 8.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.3122, allocations: 4 kB / 429.7 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005968/0.3128, allocations: 132.3 kB / 429.8 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000495/0.3133, allocations: 146.5 kB / 430 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.526e-05/0.3134, allocations: 16 kB / 430 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004215/0.3176, allocations: 4.457 MB / 434.4 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.3176, allocations: 7.938 kB / 434.4 MB, free: 3.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.3204, allocations: 1.346 MB / 435.8 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006581/0.3211, allocations: 283.4 kB / 436.1 MB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003167/0.3214, allocations: 16 kB / 436.1 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007879/0.3222, allocations: 47.97 kB / 436.1 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.3223, allocations: 64.36 kB / 436.2 MB, free: 1.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.918e-05/0.3224, allocations: 20 kB / 436.2 MB, free: 1.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0016/0.324, allocations: 0.8664 MB / 437.1 MB, free: 464 kB / 314.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.324, allocations: 0 / 437.1 MB, free: 464 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.00142/0.3254, allocations: 328 kB / 437.4 MB, free: 136 kB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002776/0.3257, allocations: 135.1 kB / 437.5 MB, free: 15.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002202/0.328, allocations: 1.139 MB / 438.7 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.328, allocations: 0 / 438.7 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.3292, allocations: 0.72 MB / 439.4 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002893/0.3321, allocations: 344.3 kB / 439.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006617/0.3387, allocations: 3.621 MB / 443.3 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.3398, allocations: 1.214 MB / 444.6 MB, free: 8.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003821/0.3402, allocations: 95.42 kB / 444.6 MB, free: 8.68 MB / 330.7 MB Notification: Performance of SimCode: time 6.92e-07/0.3402, allocations: 0 / 444.6 MB, free: 8.68 MB / 330.7 MB Notification: Performance of Templates: time 0.05128/0.3915, allocations: 40.64 MB / 485.3 MB, free: 15.99 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches