Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009788/0.0009789, allocations: 103 kB / 296.7 MB, free: 6.449 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009208/0.0009208, allocations: 51.92 kB / 356.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2098, allocations: 50.45 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006423/0.2163, allocations: 8.194 MB / 415.3 MB, free: 19.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003849/0.2202, allocations: 2.721 MB / 418 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007453/0.221, allocations: 23.94 kB / 418 MB, free: 16.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.2222, allocations: 0.5019 MB / 418.5 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007497/0.2229, allocations: 413.1 kB / 418.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.2233, allocations: 223.8 kB / 419.1 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008693/0.2242, allocations: 1.443 MB / 420.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005227/0.2247, allocations: 0.4929 MB / 421.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000461/0.2252, allocations: 0.5211 MB / 421.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004045/0.2256, allocations: 0.5715 MB / 422.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.2257, allocations: 91.94 kB / 422.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002518/0.226, allocations: 128 kB / 422.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.2261, allocations: 230.9 kB / 422.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003692/0.2265, allocations: 0.6218 MB / 423.2 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009207/0.2274, allocations: 1.693 MB / 424.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2274, allocations: 0 / 424.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.2274, allocations: 4 kB / 424.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.2274, allocations: 4 kB / 424.9 MB, free: 9.852 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.001873/0.2293, allocations: 1.476 MB / 426.4 MB, free: 8.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.2294, allocations: 16.02 kB / 426.4 MB, free: 8.305 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006297/0.23, allocations: 195.3 kB / 426.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008247/0.2308, allocations: 0.7464 MB / 427.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.2309, allocations: 70 kB / 427.4 MB, free: 7.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.42e-05/0.231, allocations: 103.9 kB / 427.5 MB, free: 7.156 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.2322, allocations: 0.9386 MB / 428.4 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.882e-05/0.2322, allocations: 11.98 kB / 428.5 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.393e-05/0.2323, allocations: 40 kB / 428.5 MB, free: 6.137 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.2323, allocations: 24 kB / 428.5 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.2333, allocations: 0.6519 MB / 429.2 MB, free: 5.465 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003868/0.2372, allocations: 3.953 MB / 433.1 MB, free: 1.285 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005646/0.2378, allocations: 451.8 kB / 433.6 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/0.2383, allocations: 266.9 kB / 433.8 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.2383, allocations: 7.781 kB / 433.8 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/0.2383, allocations: 38.56 kB / 433.9 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 2.014e-06/0.2383, allocations: 0 / 433.9 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002567/0.2409, allocations: 1.542 MB / 435.4 MB, free: 14.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.241, allocations: 89.05 kB / 435.5 MB, free: 14.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009882/0.242, allocations: 0.841 MB / 436.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.242, allocations: 37.7 kB / 436.4 MB, free: 13.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.2424, allocations: 0.5681 MB / 437 MB, free: 13.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.2425, allocations: 149.8 kB / 437.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.2427, allocations: 138.5 kB / 437.2 MB, free: 13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.2428, allocations: 334 kB / 437.6 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003429/0.2431, allocations: 173.9 kB / 437.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.2437, allocations: 475.6 kB / 438.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008903/0.2446, allocations: 0.6721 MB / 438.9 MB, free: 11.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.2446, allocations: 4 kB / 438.9 MB, free: 11.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001303/0.2459, allocations: 0.7791 MB / 439.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.2459, allocations: 15.94 kB / 439.7 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.2459, allocations: 8 kB / 439.7 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002525/0.2462, allocations: 89.61 kB / 439.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004918/0.2467, allocations: 159.7 kB / 439.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/0.2489, allocations: 2.88 MB / 442.8 MB, free: 6.867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.2494, allocations: 43.95 kB / 442.8 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.2494, allocations: 39.98 kB / 442.9 MB, free: 6.785 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.0003604/0.2498, allocations: 264.5 kB / 443.1 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.2499, allocations: 86.97 kB / 443.2 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009469/0.2509, allocations: 0.4953 MB / 443.7 MB, free: 5.926 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2509, allocations: 8 kB / 443.7 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.2509, allocations: 0 / 443.7 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2509, allocations: 3.984 kB / 443.7 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.253, allocations: 1.469 MB / 445.2 MB, free: 4.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.253, allocations: 7.938 kB / 445.2 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.2533, allocations: 75.89 kB / 445.3 MB, free: 4.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000194/0.2535, allocations: 77.92 kB / 445.4 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.2536, allocations: 12 kB / 445.4 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/0.2557, allocations: 2.856 MB / 448.2 MB, free: 1.062 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.2557, allocations: 3.984 kB / 448.2 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007838/0.2635, allocations: 6.679 MB / 454.9 MB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002511/0.2638, allocations: 196 kB / 455.1 MB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.025e-05/0.2639, allocations: 16 kB / 455.1 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004162/0.2643, allocations: 27.97 kB / 455.1 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.492e-05/0.2644, allocations: 32.05 kB / 455.2 MB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.2644, allocations: 19.94 kB / 455.2 MB, free: 9.609 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007589/0.2652, allocations: 0.5771 MB / 455.8 MB, free: 9.035 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2652, allocations: 0 / 455.8 MB, free: 9.035 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001148/0.2664, allocations: 303.9 kB / 456.1 MB, free: 8.738 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.0002848/0.2667, allocations: 127.2 kB / 456.2 MB, free: 8.605 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.2678, allocations: 0.695 MB / 456.9 MB, free: 7.887 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2678, allocations: 3.938 kB / 456.9 MB, free: 7.883 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000599/0.2684, allocations: 449.6 kB / 457.3 MB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.2696, allocations: 215.8 kB / 457.5 MB, free: 7.215 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.2731, allocations: 2.73 MB / 460.3 MB, free: 4.391 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006513/0.2738, allocations: 1.017 MB / 461.3 MB, free: 3.348 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004594/0.2743, allocations: 111.3 kB / 461.4 MB, free: 3.234 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.2744, allocations: 59.42 kB / 461.5 MB, free: 3.176 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.2744, allocations: 0 / 461.5 MB, free: 3.176 MB / 330.7 MB Notification: Performance of Templates: time 0.01913/0.2936, allocations: 11.4 MB / 472.9 MB, free: 7.875 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@2/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