Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 178.9 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 225.7 MB / 243.2 MB, free: 8.469 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007325/0.0007325, allocations: 100.8 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002262/0.0002264, allocations: 7.938 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1875, allocations: 50.42 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.006958/0.1945, allocations: 10.42 MB / 415 MB, free: 20.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004182/0.1987, allocations: 3.464 MB / 418.5 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006925/0.1994, allocations: 39.88 kB / 418.5 MB, free: 17.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.2005, allocations: 0.5516 MB / 419.1 MB, free: 16.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001093/0.2016, allocations: 0.5818 MB / 419.6 MB, free: 16.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005452/0.2022, allocations: 347.8 kB / 420 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.2035, allocations: 2.125 MB / 422.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008007/0.2043, allocations: 0.8462 MB / 423 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006062/0.2049, allocations: 0.6881 MB / 423.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006187/0.2056, allocations: 0.785 MB / 424.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.2057, allocations: 104 kB / 424.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.2061, allocations: 136 kB / 424.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.2063, allocations: 298.5 kB / 425 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00062/0.2069, allocations: 0.9071 MB / 425.9 MB, free: 9.867 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001555/0.2085, allocations: 2.51 MB / 428.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2085, allocations: 0 / 428.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2085, allocations: 0 / 428.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.977e-05/0.2085, allocations: 0 / 428.4 MB, free: 7.348 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002257/0.2108, allocations: 1.752 MB / 430.1 MB, free: 5.531 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.2108, allocations: 12.03 kB / 430.1 MB, free: 5.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005983/0.2114, allocations: 266.4 kB / 430.4 MB, free: 5.258 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.2125, allocations: 1.02 MB / 431.4 MB, free: 4.195 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.495e-05/0.2126, allocations: 115.4 kB / 431.5 MB, free: 4.082 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.2127, allocations: 167.8 kB / 431.7 MB, free: 3.918 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.2146, allocations: 1.476 MB / 433.2 MB, free: 2.367 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.2147, allocations: 15.84 kB / 433.2 MB, free: 2.352 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.005e-05/0.2147, allocations: 64 kB / 433.2 MB, free: 2.289 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.041e-05/0.2148, allocations: 40 kB / 433.3 MB, free: 2.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.2162, allocations: 0.9746 MB / 434.3 MB, free: 1.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006291/0.2225, allocations: 6.59 MB / 440.8 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006742/0.2232, allocations: 408.1 kB / 441.2 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003722/0.2236, allocations: 227.1 kB / 441.5 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.2236, allocations: 8.422 kB / 441.5 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004599/0.2241, allocations: 276.8 kB / 441.7 MB, free: 9.395 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 1.623e-06/0.2241, allocations: 3.938 kB / 441.8 MB, free: 9.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.00281/0.2269, allocations: 1.777 MB / 443.5 MB, free: 7.523 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.227, allocations: 166.8 kB / 443.7 MB, free: 7.324 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.2284, allocations: 1.257 MB / 444.9 MB, free: 6.051 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.2285, allocations: 37.7 kB / 445 MB, free: 6.008 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005367/0.229, allocations: 0.879 MB / 445.9 MB, free: 5.117 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.2291, allocations: 205.2 kB / 446.1 MB, free: 4.914 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/0.2292, allocations: 20 kB / 446.1 MB, free: 4.895 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.2293, allocations: 357.8 kB / 446.4 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.2297, allocations: 230.5 kB / 446.7 MB, free: 4.312 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006912/0.2304, allocations: 0.8112 MB / 447.5 MB, free: 3.227 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.2316, allocations: 1.114 MB / 448.6 MB, free: 1.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.475e-06/0.2316, allocations: 11.98 kB / 448.6 MB, free: 1.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001716/0.2333, allocations: 1.169 MB / 449.8 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.2334, allocations: 45.69 kB / 449.8 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.2334, allocations: 20 kB / 449.8 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001951/0.2336, allocations: 70.27 kB / 449.9 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007019/0.2343, allocations: 267.6 kB / 450.2 MB, free: 240 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.2358, allocations: 2.579 MB / 452.7 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007631/0.2366, allocations: 71.88 kB / 452.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/0.2367, allocations: 63.94 kB / 452.9 MB, free: 13.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004629/0.2372, allocations: 361.3 kB / 453.2 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.2373, allocations: 130.4 kB / 453.4 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008992/0.2382, allocations: 0.5607 MB / 453.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.2382, allocations: 7.938 kB / 453.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2382, allocations: 4 kB / 453.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2382, allocations: 3.984 kB / 453.9 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.2405, allocations: 1.874 MB / 455.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2405, allocations: 4.469 kB / 455.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003865/0.2409, allocations: 111.9 kB / 455.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.2411, allocations: 41.7 kB / 456 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.2411, allocations: 15.98 kB / 456 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001402/0.2425, allocations: 2.56 MB / 458.5 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.2425, allocations: 7.938 kB / 458.5 MB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.2437, allocations: 0.9382 MB / 459.5 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/0.244, allocations: 259.4 kB / 459.7 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.2442, allocations: 16 kB / 459.7 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005044/0.2447, allocations: 35.97 kB / 459.8 MB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.099e-05/0.2448, allocations: 55.81 kB / 459.8 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.2448, allocations: 20 kB / 459.9 MB, free: 5.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001001/0.2458, allocations: 0.8344 MB / 460.7 MB, free: 4.926 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2458, allocations: 0 / 460.7 MB, free: 4.926 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009052/0.2467, allocations: 304 kB / 461 MB, free: 4.629 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002006/0.2469, allocations: 151 kB / 461.1 MB, free: 4.469 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.2483, allocations: 0.9255 MB / 462.1 MB, free: 3.512 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2483, allocations: 0 / 462.1 MB, free: 3.512 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005945/0.2489, allocations: 477.3 kB / 462.5 MB, free: 3.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.2507, allocations: 321.8 kB / 462.8 MB, free: 2.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.2542, allocations: 3.26 MB / 466.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006299/0.2549, allocations: 1.182 MB / 467.3 MB, free: 14.15 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005321/0.2554, allocations: 163.3 kB / 467.4 MB, free: 13.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.2556, allocations: 83.44 kB / 467.5 MB, free: 13.9 MB / 346.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2556, allocations: 4 kB / 467.5 MB, free: 13.9 MB / 346.7 MB Notification: Performance of Templates: time 0.02289/0.2785, allocations: 14.16 MB / 481.7 MB, free: 15.91 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches