Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 179 kB / 17.36 MB, free: 4.195 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007639/0.0007639, allocations: 95.25 kB / 272.1 MB, free: 8.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002782, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.2189, allocations: 47.57 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005881/0.2248, allocations: 7.238 MB / 383.8 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004486/0.2293, allocations: 2.816 MB / 386.7 MB, free: 37.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008277/0.2302, allocations: 23.03 kB / 386.7 MB, free: 37.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.2318, allocations: 0.4983 MB / 387.2 MB, free: 37.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001316/0.2331, allocations: 409.5 kB / 387.6 MB, free: 36.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004749/0.2336, allocations: 231.3 kB / 387.8 MB, free: 36.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.235, allocations: 1.418 MB / 389.2 MB, free: 35.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006389/0.2357, allocations: 0.5002 MB / 389.7 MB, free: 35.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005442/0.2362, allocations: 481.7 kB / 390.2 MB, free: 34.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004254/0.2367, allocations: 0.5324 MB / 390.7 MB, free: 34.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.2368, allocations: 68 kB / 390.8 MB, free: 34.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002646/0.237, allocations: 108 kB / 390.9 MB, free: 34.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.2372, allocations: 199 kB / 391.1 MB, free: 33.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003873/0.2376, allocations: 0.6117 MB / 391.7 MB, free: 33.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009699/0.2385, allocations: 1.638 MB / 393.3 MB, free: 31.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2386, allocations: 0 / 393.3 MB, free: 31.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2386, allocations: 0 / 393.3 MB, free: 31.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.747e-05/0.2386, allocations: 0 / 393.3 MB, free: 31.62 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.001911/0.2405, allocations: 1.29 MB / 394.6 MB, free: 30.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.2406, allocations: 16.03 kB / 394.6 MB, free: 30.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005587/0.2411, allocations: 187.3 kB / 394.8 MB, free: 30.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008846/0.242, allocations: 0.7386 MB / 395.6 MB, free: 29.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/0.2421, allocations: 74 kB / 395.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.2422, allocations: 103.9 kB / 395.7 MB, free: 29.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.2436, allocations: 0.9424 MB / 396.7 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.392e-05/0.2436, allocations: 8 kB / 396.7 MB, free: 28.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.509e-05/0.2437, allocations: 40 kB / 396.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.2437, allocations: 24 kB / 396.8 MB, free: 28.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.2448, allocations: 0.6559 MB / 397.4 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003826/0.2486, allocations: 3.976 MB / 401.4 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000578/0.2492, allocations: 449.4 kB / 401.8 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004839/0.2497, allocations: 284.7 kB / 402.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.2498, allocations: 4 kB / 402.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.2498, allocations: 38.5 kB / 402.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.683e-06/0.2498, allocations: 0 / 402.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002403/0.2522, allocations: 1.587 MB / 403.7 MB, free: 20.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.2523, allocations: 81.11 kB / 403.8 MB, free: 20.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008592/0.2531, allocations: 0.8333 MB / 404.6 MB, free: 19.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.2532, allocations: 33.7 kB / 404.7 MB, free: 19.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.2535, allocations: 0.5681 MB / 405.2 MB, free: 19.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.596e-05/0.2535, allocations: 165.6 kB / 405.4 MB, free: 19.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.2536, allocations: 12 kB / 405.4 MB, free: 19.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.987e-05/0.2536, allocations: 334 kB / 405.7 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002941/0.2539, allocations: 185.8 kB / 405.9 MB, free: 18.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003775/0.2543, allocations: 471.6 kB / 406.4 MB, free: 17.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007006/0.255, allocations: 0.6875 MB / 407.1 MB, free: 17.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.255, allocations: 4 kB / 407.1 MB, free: 17.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001055/0.2561, allocations: 0.7982 MB / 407.9 MB, free: 16.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.2561, allocations: 12 kB / 407.9 MB, free: 16.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.2562, allocations: 8 kB / 407.9 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002387/0.2564, allocations: 81.88 kB / 408 MB, free: 16.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004279/0.2568, allocations: 167.7 kB / 408.1 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.2584, allocations: 2.876 MB / 411 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004592/0.2589, allocations: 43.89 kB / 411.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.415e-05/0.2589, allocations: 32 kB / 411.1 MB, free: 12.79 MB / 298.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.00029/0.2592, allocations: 265.6 kB / 411.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.2593, allocations: 82.97 kB / 411.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000775/0.2601, allocations: 0.5146 MB / 411.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2601, allocations: 4 kB / 411.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2601, allocations: 4 kB / 412 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2601, allocations: 128 / 412 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.2618, allocations: 1.498 MB / 413.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2618, allocations: 3.938 kB / 413.5 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/0.2621, allocations: 79.89 kB / 413.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001628/0.2623, allocations: 69.67 kB / 413.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.2623, allocations: 16.03 kB / 413.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001393/0.2637, allocations: 2.849 MB / 416.5 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.2637, allocations: 12 kB / 416.5 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.2647, allocations: 0.8167 MB / 417.3 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002386/0.265, allocations: 200 kB / 417.5 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.385e-05/0.2651, allocations: 19.92 kB / 417.5 MB, free: 5.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000389/0.2655, allocations: 31.98 kB / 417.5 MB, free: 5.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.812e-05/0.2656, allocations: 31.95 kB / 417.6 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.2656, allocations: 12 kB / 417.6 MB, free: 5.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006484/0.2663, allocations: 0.5732 MB / 418.2 MB, free: 5.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2663, allocations: 0 / 418.2 MB, free: 5.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007524/0.267, allocations: 208 kB / 418.4 MB, free: 5.066 MB / 298.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.0002221/0.2673, allocations: 131.1 kB / 418.5 MB, free: 4.926 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009839/0.2683, allocations: 0.7085 MB / 419.2 MB, free: 4.191 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.2683, allocations: 0 / 419.2 MB, free: 4.191 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005319/0.2688, allocations: 458.8 kB / 419.6 MB, free: 3.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.2699, allocations: 219.2 kB / 419.9 MB, free: 3.508 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.2722, allocations: 2.267 MB / 422.1 MB, free: 1.195 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.2726, allocations: 1.009 MB / 423.1 MB, free: 164 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000371/0.2729, allocations: 107.3 kB / 423.2 MB, free: 52 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.2731, allocations: 59.47 kB / 423.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2731, allocations: 0 / 423.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of Templates: time 0.01853/0.2916, allocations: 10.1 MB / 433.4 MB, free: 5.98 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches