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.002748/0.002754, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.555/3.555, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.002235/0.002235, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005084/0.0005085, allocations: 8 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.1632, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.02875/0.192, allocations: 9.603 MB / 384.1 MB, free: 5.789 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01516/0.2073, allocations: 3.226 MB / 387.4 MB, free: 2.555 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003255/0.2106, allocations: 35.94 kB / 387.4 MB, free: 2.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004476/0.2152, allocations: 0.5168 MB / 387.9 MB, free: 2 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006455/0.2217, allocations: 0.7673 MB / 388.7 MB, free: 1.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002528/0.2243, allocations: 247.7 kB / 388.9 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.4647/0.689, allocations: 1.691 MB / 390.6 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003462/0.6926, allocations: 0.6891 MB / 391.3 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004474/0.6971, allocations: 0.6842 MB / 392 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003309/0.7005, allocations: 0.7583 MB / 392.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.7017, allocations: 101.7 kB / 392.9 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002962/0.7048, allocations: 137.9 kB / 393 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009475/0.7058, allocations: 290.5 kB / 393.3 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003114/0.709, allocations: 401.6 kB / 393.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00916/0.7182, allocations: 2.139 MB / 395.8 MB, free: 9.988 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.7183, allocations: 1.094 kB / 395.8 MB, free: 9.988 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.7183, allocations: 0 / 395.8 MB, free: 9.988 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001636/0.7185, allocations: 4 kB / 395.8 MB, free: 9.984 MB / 282.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.009798/0.7283, allocations: 1.819 MB / 397.6 MB, free: 8.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.985e-05/0.7284, allocations: 13.72 kB / 397.6 MB, free: 8.977 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002706/0.7312, allocations: 249.8 kB / 397.9 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005365/0.7366, allocations: 1.08 MB / 399 MB, free: 8.492 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.7369, allocations: 117.4 kB / 399.1 MB, free: 8.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.738, allocations: 160 kB / 399.2 MB, free: 8.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007766/0.7458, allocations: 1.47 MB / 400.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001317/0.746, allocations: 7.375 kB / 400.7 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002779/0.7463, allocations: 64.62 kB / 400.8 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.09e-05/0.7463, allocations: 42 kB / 400.8 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006853/0.7532, allocations: 1.012 MB / 401.8 MB, free: 8.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02159/0.7749, allocations: 6.165 MB / 408 MB, free: 5.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003127/0.7781, allocations: 0.5711 MB / 408.6 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/0.7783, allocations: 11.44 kB / 408.6 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/0.7784, allocations: 41.97 kB / 408.6 MB, free: 4.875 MB / 282.7 MB Notification: Performance of pre-optimization done (n=66): time 5.421e-06/0.7784, allocations: 0 / 408.6 MB, free: 4.875 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.01264/0.7911, allocations: 2.275 MB / 410.9 MB, free: 3.754 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.626e-05/0.7912, allocations: 115.7 kB / 411 MB, free: 3.621 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004235/0.7955, allocations: 1.178 MB / 412.2 MB, free: 2.957 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000202/0.7958, allocations: 37.3 kB / 412.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.7968, allocations: 0.8325 MB / 413.1 MB, free: 2.156 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005492/0.7974, allocations: 258.7 kB / 413.3 MB, free: 1.938 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.7975, allocations: 24.12 kB / 413.3 MB, free: 1.918 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.7977, allocations: 352.4 kB / 413.7 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/0.7992, allocations: 277.5 kB / 413.9 MB, free: 1.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/0.8014, allocations: 0.7167 MB / 414.7 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002031/0.8035, allocations: 392.3 kB / 415 MB, free: 500 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.891e-05/0.8036, allocations: 8.297 kB / 415.1 MB, free: 496 kB / 282.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.006172/0.8098, allocations: 1.116 MB / 416.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.994e-05/0.81, allocations: 19.89 kB / 416.2 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.687e-05/0.8101, allocations: 15.69 kB / 416.2 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009261/0.811, allocations: 107.6 kB / 416.3 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/0.8137, allocations: 268.5 kB / 416.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008257/0.822, allocations: 4.199 MB / 420.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00289/0.825, allocations: 58.47 kB / 420.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003752/0.8255, allocations: 53.94 kB / 420.9 MB, free: 11.48 MB / 298.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 (138): * Single equations (assignments): 135 * 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.002134/0.8276, allocations: 357.7 kB / 421.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006533/0.8283, allocations: 140.1 kB / 421.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004388/0.8327, allocations: 0.7883 MB / 422.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.392e-05/0.8328, allocations: 13.67 kB / 422.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/0.8328, allocations: 7.328 kB / 422.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/0.8329, allocations: 0 / 422.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/0.8436, allocations: 2.175 MB / 424.4 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-05/0.8437, allocations: 4 kB / 424.4 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001755/0.8455, allocations: 136.2 kB / 424.5 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.8466, allocations: 108.1 kB / 424.6 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001954/0.8468, allocations: 16 kB / 424.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008938/0.8558, allocations: 4.314 MB / 428.9 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.535e-05/0.8559, allocations: 9.797 kB / 428.9 MB, free: 3.836 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00669/0.8626, allocations: 1.422 MB / 430.4 MB, free: 2.238 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/0.8643, allocations: 263.4 kB / 430.6 MB, free: 1.961 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007663/0.8651, allocations: 19.98 kB / 430.6 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002315/0.8675, allocations: 35.98 kB / 430.7 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004664/0.868, allocations: 64.66 kB / 430.7 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.8682, allocations: 24.36 kB / 430.8 MB, free: 1.816 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.003461/0.8717, allocations: 0.7766 MB / 431.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.453e-06/0.8718, allocations: 4 kB / 431.5 MB, free: 1.035 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.004057/0.8758, allocations: 320 kB / 431.8 MB, free: 0.7227 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.0006579/0.8766, allocations: 139 kB / 432 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005188/0.8818, allocations: 1.099 MB / 433.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.699e-05/0.8819, allocations: 1.812 kB / 433.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002834/0.8847, allocations: 0.6757 MB / 433.8 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004717/0.8895, allocations: 337.1 kB / 434.1 MB, free: 14.4 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01513/0.9048, allocations: 3.48 MB / 437.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002519/0.9074, allocations: 1.245 MB / 438.8 MB, free: 9.562 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007396/0.9082, allocations: 99.42 kB / 438.9 MB, free: 9.469 MB / 314.7 MB Notification: Performance of SimCode: time 2.615e-06/0.9083, allocations: 0 / 438.9 MB, free: 9.469 MB / 314.7 MB Notification: Performance of Templates: time 0.1704/1.079, allocations: 38 MB / 476.9 MB, free: 3.434 MB / 346.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/jenkins1/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