Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 109.4 kB / 18.4 MB, free: 4.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 185.2 kB / 19.33 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.224/1.224, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 51.92 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0691/0.07021, allocations: 46.62 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.1486/0.2189, allocations: 7.922 MB / 383.8 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003238/0.2222, allocations: 2.631 MB / 386.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004133/0.2226, allocations: 23.88 kB / 386.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.2237, allocations: 0.5542 MB / 387 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000717/0.2245, allocations: 456 kB / 387.4 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.2248, allocations: 239 kB / 387.6 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001073/0.2259, allocations: 1.437 MB / 389.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006575/0.2266, allocations: 0.59 MB / 389.7 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005591/0.2271, allocations: 0.5385 MB / 390.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005288/0.2277, allocations: 0.5802 MB / 390.8 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001495/0.2278, allocations: 139.6 kB / 390.9 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003033/0.2281, allocations: 176.4 kB / 391.1 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.2283, allocations: 272.8 kB / 391.4 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004314/0.2287, allocations: 0.6517 MB / 392 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001498/0.2302, allocations: 1.69 MB / 393.7 MB, free: 4.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2303, allocations: 1.469 kB / 393.7 MB, free: 4.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2303, allocations: 0 / 393.7 MB, free: 4.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.712e-05/0.2303, allocations: 0 / 393.7 MB, free: 4.262 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001899/0.2322, allocations: 1.431 MB / 395.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.2322, allocations: 12.53 kB / 395.1 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004931/0.2327, allocations: 171.9 kB / 395.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009488/0.2337, allocations: 0.7332 MB / 396 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.053e-05/0.2337, allocations: 69.03 kB / 396.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.2339, allocations: 103.3 kB / 396.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.2352, allocations: 0.9153 MB / 397.1 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.859e-05/0.2353, allocations: 11.61 kB / 397.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-05/0.2353, allocations: 36.38 kB / 397.2 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.868e-05/0.2354, allocations: 23.69 kB / 397.2 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.2364, allocations: 0.6226 MB / 397.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003973/0.2404, allocations: 3.867 MB / 401.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000492/0.2409, allocations: 357.8 kB / 402 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002693/0.2412, allocations: 144.2 kB / 402.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.2412, allocations: 3.844 kB / 402.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.2413, allocations: 41.7 kB / 402.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.904e-06/0.2413, allocations: 4 kB / 402.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002023/0.2433, allocations: 1.193 MB / 403.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.2433, allocations: 81.23 kB / 403.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009749/0.2443, allocations: 0.8279 MB / 404.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.2444, allocations: 39.89 kB / 404.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000356/0.2447, allocations: 0.5636 MB / 404.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.162e-05/0.2448, allocations: 127.5 kB / 405.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.245, allocations: 121.9 kB / 405.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2451, allocations: 332.4 kB / 405.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002896/0.2454, allocations: 151.8 kB / 405.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004552/0.2458, allocations: 458.3 kB / 406.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007701/0.2466, allocations: 0.6405 MB / 406.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.2466, allocations: 3.562 kB / 406.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001057/0.2477, allocations: 0.6841 MB / 407.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.2477, allocations: 13.28 kB / 407.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.2478, allocations: 14.75 kB / 407.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001463/0.2479, allocations: 43.59 kB / 407.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004531/0.2484, allocations: 156.1 kB / 407.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000988/0.2494, allocations: 1.389 MB / 409 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004669/0.2498, allocations: 38.3 kB / 409.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.2499, allocations: 31.38 kB / 409.1 MB, free: 9.566 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003072/0.2502, allocations: 260.5 kB / 409.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.2503, allocations: 87.31 kB / 409.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006652/0.251, allocations: 365.3 kB / 409.8 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.251, allocations: 11.56 kB / 409.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.251, allocations: 0 / 409.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.251, allocations: 5.047 kB / 409.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.2527, allocations: 1.272 MB / 411.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2527, allocations: 1.094 kB / 411.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002895/0.253, allocations: 75.09 kB / 411.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.267e-05/0.2531, allocations: 24.22 kB / 411.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.2531, allocations: 16.34 kB / 411.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008654/0.254, allocations: 1.367 MB / 412.6 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.254, allocations: 2.156 kB / 412.6 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008919/0.2549, allocations: 0.6347 MB / 413.2 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.2551, allocations: 187 kB / 413.4 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.866e-05/0.2552, allocations: 8.594 kB / 413.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003464/0.2555, allocations: 33.12 kB / 413.4 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.223e-05/0.2556, allocations: 27.75 kB / 413.5 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.2556, allocations: 8.438 kB / 413.5 MB, free: 5.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006604/0.2563, allocations: 0.5599 MB / 414 MB, free: 5.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2563, allocations: 5.094 kB / 414 MB, free: 5.648 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006324/0.257, allocations: 188 kB / 414.2 MB, free: 5.633 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.000177/0.2571, allocations: 126.2 kB / 414.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008663/0.258, allocations: 0.5102 MB / 414.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.258, allocations: 4.969 kB / 414.9 MB, free: 5.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003714/0.2584, allocations: 260.7 kB / 415.1 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009221/0.2593, allocations: 223.9 kB / 415.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.2617, allocations: 1.717 MB / 417 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.2622, allocations: 0.9956 MB / 418 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.2623, allocations: 61.81 kB / 418.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2623, allocations: 0 / 418.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of Templates: time 0.01729/0.2796, allocations: 15.82 MB / 433.9 MB, free: 4.238 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches