Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001735/0.001735, allocations: 199.7 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008541/0.0008543, allocations: 94.78 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002154, allocations: 4 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2018, allocations: 51.42 MB / 412.1 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005433/0.2072, allocations: 7.277 MB / 419.3 MB, free: 18.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003247/0.2105, allocations: 3.067 MB / 422.4 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004188/0.2109, allocations: 23.94 kB / 422.4 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009765/0.2119, allocations: 0.4903 MB / 422.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006626/0.2126, allocations: 421.1 kB / 423.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.2129, allocations: 227.7 kB / 423.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008501/0.2138, allocations: 1.424 MB / 425 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005128/0.2143, allocations: 0.4929 MB / 425.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004079/0.2147, allocations: 485.6 kB / 425.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003712/0.2151, allocations: 0.5363 MB / 426.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.099e-05/0.2152, allocations: 68 kB / 426.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002224/0.2155, allocations: 104 kB / 426.6 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.2156, allocations: 199 kB / 426.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003651/0.2159, allocations: 0.6156 MB / 427.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009075/0.2169, allocations: 1.642 MB / 429.1 MB, free: 8.703 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2169, allocations: 0 / 429.1 MB, free: 8.703 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2169, allocations: 0 / 429.1 MB, free: 8.703 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.2169, allocations: 0 / 429.1 MB, free: 8.703 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001641/0.2185, allocations: 1.289 MB / 430.4 MB, free: 7.359 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2186, allocations: 8.031 kB / 430.4 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006206/0.2192, allocations: 207.3 kB / 430.6 MB, free: 7.148 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008639/0.2201, allocations: 0.7425 MB / 431.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/0.2201, allocations: 77.98 kB / 431.4 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.2202, allocations: 99.91 kB / 431.5 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.2216, allocations: 0.9425 MB / 432.5 MB, free: 5.219 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.056e-05/0.2216, allocations: 4 kB / 432.5 MB, free: 5.215 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.475e-05/0.2217, allocations: 40 kB / 432.5 MB, free: 5.176 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.2217, allocations: 24 kB / 432.5 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.2228, allocations: 0.6559 MB / 433.2 MB, free: 4.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003691/0.2265, allocations: 3.981 MB / 437.2 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005941/0.2271, allocations: 455.9 kB / 437.6 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/0.2276, allocations: 272.3 kB / 437.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.2277, allocations: 11.77 kB / 437.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.2277, allocations: 42.5 kB / 437.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.613e-06/0.2277, allocations: 4 kB / 437.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.002739/0.2305, allocations: 1.585 MB / 439.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.2305, allocations: 89.11 kB / 439.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/0.2316, allocations: 0.8254 MB / 440.4 MB, free: 12.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.2316, allocations: 37.7 kB / 440.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003656/0.232, allocations: 0.5681 MB / 441 MB, free: 12.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.2321, allocations: 157.8 kB / 441.2 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.2321, allocations: 12 kB / 441.2 MB, free: 12.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.2322, allocations: 337.9 kB / 441.5 MB, free: 11.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.2326, allocations: 177.9 kB / 441.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004946/0.2331, allocations: 475.6 kB / 442.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009036/0.234, allocations: 0.6915 MB / 442.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.234, allocations: 0 / 442.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001279/0.2353, allocations: 0.7907 MB / 443.6 MB, free: 9.336 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.2353, allocations: 8 kB / 443.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.2353, allocations: 8 kB / 443.7 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002541/0.2356, allocations: 89.92 kB / 443.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005078/0.2361, allocations: 155.7 kB / 443.9 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002248/0.2384, allocations: 2.88 MB / 446.8 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004972/0.2389, allocations: 39.89 kB / 446.8 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.557e-05/0.2389, allocations: 36.06 kB / 446.9 MB, free: 5.848 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003992/0.2393, allocations: 265.5 kB / 447.1 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.2395, allocations: 86.97 kB / 447.2 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00094/0.2404, allocations: 0.5225 MB / 447.7 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2404, allocations: 4 kB / 447.7 MB, free: 4.953 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.2404, allocations: 0 / 447.7 MB, free: 4.953 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.2405, allocations: 7.984 kB / 447.7 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.2425, allocations: 1.477 MB / 449.2 MB, free: 3.383 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.2425, allocations: 7.938 kB / 449.2 MB, free: 3.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003082/0.2429, allocations: 75.91 kB / 449.3 MB, free: 3.301 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/0.243, allocations: 73.77 kB / 449.4 MB, free: 3.223 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/0.2431, allocations: 16 kB / 449.4 MB, free: 3.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002033/0.2451, allocations: 2.86 MB / 452.2 MB, free: 84 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2451, allocations: 0 / 452.2 MB, free: 84 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.2464, allocations: 0.812 MB / 453 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/0.2466, allocations: 204 kB / 453.2 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.597e-05/0.2467, allocations: 15.94 kB / 453.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004034/0.2471, allocations: 31.98 kB / 453.3 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.876e-05/0.2472, allocations: 35.95 kB / 453.3 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.2472, allocations: 15.98 kB / 453.3 MB, free: 14.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007039/0.2479, allocations: 0.5654 MB / 453.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.248, allocations: 7.938 kB / 453.9 MB, free: 14.33 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007004/0.2487, allocations: 204 kB / 454.1 MB, free: 14.13 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0001979/0.2489, allocations: 131.1 kB / 454.2 MB, free: 13.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.25, allocations: 0.7204 MB / 455 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.25, allocations: 0 / 455 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006126/0.2506, allocations: 459.3 kB / 455.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.2518, allocations: 207.4 kB / 455.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002714/0.2545, allocations: 2.258 MB / 457.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/0.2551, allocations: 1.016 MB / 458.9 MB, free: 9.223 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000394/0.2555, allocations: 111.3 kB / 459 MB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.2556, allocations: 55.44 kB / 459.1 MB, free: 9.055 MB / 330.7 MB Notification: Performance of SimCode: time 4.11e-07/0.2556, allocations: 0 / 459.1 MB, free: 9.055 MB / 330.7 MB Notification: Performance of Templates: time 0.01665/0.2722, allocations: 10.08 MB / 469.1 MB, free: 15.09 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches