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.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 182.4 kB / 16.71 MB, free: 4.969 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.236/1.236, allocations: 225.7 MB / 243.2 MB, free: 8.547 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.0008561/0.0008561, allocations: 94.25 kB / 294.4 MB, free: 9.543 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002233/0.0002234, allocations: 7.938 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1888, allocations: 50.41 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005358/0.1941, allocations: 7.268 MB / 411.8 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003536/0.1977, allocations: 2.78 MB / 414.6 MB, free: 21.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005163/0.1983, allocations: 27.88 kB / 414.7 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.1993, allocations: 0.4902 MB / 415.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007532/0.2001, allocations: 417.1 kB / 415.6 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003389/0.2004, allocations: 219.8 kB / 415.8 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000812/0.2012, allocations: 1.436 MB / 417.2 MB, free: 18.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005063/0.2017, allocations: 0.489 MB / 417.7 MB, free: 18.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004219/0.2022, allocations: 485.6 kB / 418.2 MB, free: 17.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000381/0.2026, allocations: 0.5286 MB / 418.7 MB, free: 17.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.835e-05/0.2027, allocations: 68 kB / 418.8 MB, free: 17.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.2029, allocations: 108 kB / 418.9 MB, free: 16.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.203, allocations: 202.9 kB / 419.1 MB, free: 16.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.2034, allocations: 0.6118 MB / 419.7 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009139/0.2043, allocations: 1.642 MB / 421.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2043, allocations: 0 / 421.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2043, allocations: 0 / 421.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.2043, allocations: 0 / 421.3 MB, free: 14.49 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.001607/0.2059, allocations: 1.278 MB / 422.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.206, allocations: 12.03 kB / 422.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005366/0.2065, allocations: 191.3 kB / 422.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008057/0.2073, allocations: 0.7464 MB / 423.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.86e-05/0.2074, allocations: 74 kB / 423.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.2075, allocations: 99.91 kB / 423.7 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.2088, allocations: 0.9425 MB / 424.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.2088, allocations: 11.97 kB / 424.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.43e-05/0.2089, allocations: 40 kB / 424.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.2089, allocations: 28 kB / 424.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.21, allocations: 0.6558 MB / 425.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003661/0.2136, allocations: 3.981 MB / 429.4 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005615/0.2142, allocations: 443.9 kB / 429.8 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004571/0.2147, allocations: 276.7 kB / 430.1 MB, free: 5.355 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.2147, allocations: 7.984 kB / 430.1 MB, free: 5.348 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.2148, allocations: 38.56 kB / 430.1 MB, free: 5.301 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.664e-06/0.2148, allocations: 0 / 430.1 MB, free: 5.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002287/0.2171, allocations: 1.578 MB / 431.7 MB, free: 3.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.2171, allocations: 85.09 kB / 431.8 MB, free: 3.523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007989/0.2179, allocations: 0.8293 MB / 432.6 MB, free: 2.684 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.2179, allocations: 45.62 kB / 432.7 MB, free: 2.633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.2182, allocations: 0.5604 MB / 433.2 MB, free: 2.062 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.059e-05/0.2183, allocations: 157.7 kB / 433.4 MB, free: 1.906 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.165e-05/0.2183, allocations: 16 kB / 433.4 MB, free: 1.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.102e-05/0.2183, allocations: 334 kB / 433.7 MB, free: 1.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.2186, allocations: 177.9 kB / 433.9 MB, free: 1.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/0.219, allocations: 475.6 kB / 434.3 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007053/0.2197, allocations: 0.6915 MB / 435 MB, free: 15.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2197, allocations: 0 / 435 MB, free: 15.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00126/0.221, allocations: 0.7946 MB / 435.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.221, allocations: 8 kB / 435.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.221, allocations: 8 kB / 435.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/0.2213, allocations: 89.8 kB / 435.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.2218, allocations: 167.7 kB / 436.1 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.2238, allocations: 2.872 MB / 439 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005037/0.2243, allocations: 39.89 kB / 439 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.2244, allocations: 36.03 kB / 439 MB, free: 11.66 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.0003528/0.2248, allocations: 270.7 kB / 439.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.2249, allocations: 98.88 kB / 439.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009241/0.2258, allocations: 0.5109 MB / 439.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.2258, allocations: 4 kB / 439.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.2258, allocations: 8 kB / 439.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2258, allocations: 3.984 kB / 439.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.2279, allocations: 1.477 MB / 441.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.2279, allocations: 7.938 kB / 441.4 MB, free: 9.176 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/0.2283, allocations: 84.11 kB / 441.5 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/0.2284, allocations: 61.69 kB / 441.6 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.2285, allocations: 11.98 kB / 441.6 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002046/0.2305, allocations: 2.856 MB / 444.4 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.2306, allocations: 4.031 kB / 444.4 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001214/0.2318, allocations: 0.8199 MB / 445.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/0.232, allocations: 204 kB / 445.5 MB, free: 4.805 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.364e-05/0.2321, allocations: 11.94 kB / 445.5 MB, free: 4.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/0.2326, allocations: 39.97 kB / 445.5 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.149e-05/0.2326, allocations: 35.89 kB / 445.5 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.2327, allocations: 12 kB / 445.5 MB, free: 4.707 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007302/0.2334, allocations: 0.5654 MB / 446.1 MB, free: 4.145 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2334, allocations: 0 / 446.1 MB, free: 4.145 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007498/0.2342, allocations: 208 kB / 446.3 MB, free: 3.941 MB / 314.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.0001924/0.2344, allocations: 135.1 kB / 446.4 MB, free: 3.801 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.2355, allocations: 0.7136 MB / 447.2 MB, free: 3.062 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2355, allocations: 0 / 447.2 MB, free: 3.062 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006083/0.2361, allocations: 466.1 kB / 447.6 MB, free: 2.582 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.2373, allocations: 208.2 kB / 447.8 MB, free: 2.379 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.24, allocations: 2.264 MB / 450.1 MB, free: 68 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000558/0.2406, allocations: 1.016 MB / 451.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003991/0.241, allocations: 111.3 kB / 451.2 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.2411, allocations: 55.44 kB / 451.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2411, allocations: 0 / 451.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of Templates: time 0.01706/0.2582, allocations: 10.08 MB / 461.3 MB, free: 4.895 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches