Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 110.6 kB / 17.73 MB, free: 5.328 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.001574/0.001574, allocations: 194.9 kB / 18.67 MB, free: 4.395 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.868/1.868, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001466/0.001466, allocations: 51.92 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1246, allocations: 46.61 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.2939/0.4186, allocations: 8.178 MB / 383.3 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00637/0.425, allocations: 2.737 MB / 386.1 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.4267, allocations: 23.81 kB / 386.1 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002039/0.4288, allocations: 0.5525 MB / 386.6 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001838/0.4306, allocations: 484.2 kB / 387.1 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007387/0.4314, allocations: 257.2 kB / 387.4 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0019/0.4333, allocations: 1.505 MB / 388.9 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009467/0.4342, allocations: 0.5796 MB / 389.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009889/0.4352, allocations: 0.5759 MB / 390 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007667/0.436, allocations: 0.6127 MB / 390.6 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002283/0.4362, allocations: 140.1 kB / 390.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004901/0.4367, allocations: 181.6 kB / 390.9 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002368/0.437, allocations: 283.8 kB / 391.2 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007017/0.4377, allocations: 0.6739 MB / 391.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002791/0.4405, allocations: 1.752 MB / 393.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.4405, allocations: 0 / 393.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.4405, allocations: 0 / 393.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.97e-05/0.4406, allocations: 0 / 393.7 MB, free: 3.91 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003544/0.4441, allocations: 1.487 MB / 395.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.441e-05/0.4442, allocations: 13.27 kB / 395.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008289/0.445, allocations: 182.9 kB / 395.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001554/0.4466, allocations: 0.7588 MB / 396.1 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.491e-05/0.4467, allocations: 73.62 kB / 396.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.4469, allocations: 97.17 kB / 396.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.449, allocations: 0.9501 MB / 397.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.139e-05/0.4491, allocations: 6.219 kB / 397.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.7e-05/0.4492, allocations: 40.5 kB / 397.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.945e-05/0.4492, allocations: 24.62 kB / 397.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.4509, allocations: 0.6507 MB / 397.9 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008197/0.4591, allocations: 3.91 MB / 401.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.4603, allocations: 449.5 kB / 402.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009087/0.4612, allocations: 286.8 kB / 402.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.522e-05/0.4613, allocations: 4.688 kB / 402.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.321e-05/0.4614, allocations: 37.75 kB / 402.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 4.489e-06/0.4614, allocations: 0 / 402.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004417/0.4658, allocations: 1.547 MB / 404.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.4659, allocations: 81.48 kB / 404.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001915/0.4679, allocations: 0.8391 MB / 405.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.823e-05/0.4679, allocations: 36.11 kB / 405.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006729/0.4686, allocations: 0.5726 MB / 405.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.4688, allocations: 153.9 kB / 405.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/0.4691, allocations: 137.6 kB / 406 MB, free: 12.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002752/0.4694, allocations: 332.7 kB / 406.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/0.4699, allocations: 172.1 kB / 406.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008694/0.4708, allocations: 476.3 kB / 406.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.4721, allocations: 0.6828 MB / 407.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.4721, allocations: 3.281 kB / 407.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001869/0.474, allocations: 0.7837 MB / 408.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.474, allocations: 9.625 kB / 408.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.474, allocations: 13.84 kB / 408.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.4744, allocations: 87.14 kB / 408.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005939/0.475, allocations: 162.8 kB / 408.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003947/0.479, allocations: 3.143 MB / 411.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.4801, allocations: 37.7 kB / 411.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.4802, allocations: 31.81 kB / 411.9 MB, free: 6.82 MB / 334.1 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.0007182/0.4809, allocations: 269.4 kB / 412.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.4812, allocations: 97.97 kB / 412.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.4824, allocations: 0.4947 MB / 412.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.4824, allocations: 4.75 kB / 412.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4824, allocations: 5.094 kB / 412.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4825, allocations: 3.984 kB / 412.7 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002778/0.4852, allocations: 1.467 MB / 414.2 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.4853, allocations: 1.25 kB / 414.2 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.4857, allocations: 80.8 kB / 414.3 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002415/0.4859, allocations: 72.64 kB / 414.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.486, allocations: 12.19 kB / 414.4 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002961/0.4889, allocations: 3.122 MB / 417.5 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.489, allocations: 2.094 kB / 417.5 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.4906, allocations: 0.8067 MB / 418.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004727/0.4911, allocations: 202 kB / 418.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.4913, allocations: 16.53 kB / 418.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004681/0.4917, allocations: 28.3 kB / 418.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.4919, allocations: 34.7 kB / 418.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.4919, allocations: 15.2 kB / 418.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001081/0.493, allocations: 0.578 MB / 419.2 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.493, allocations: 0 / 419.2 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001364/0.4944, allocations: 207.1 kB / 419.4 MB, free: 0.7812 MB / 334.1 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.0003971/0.4948, allocations: 123.8 kB / 419.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.4966, allocations: 0.7082 MB / 420.2 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.4966, allocations: 4.312 kB / 420.2 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008575/0.4975, allocations: 453.9 kB / 420.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001269/0.4988, allocations: 230.4 kB / 420.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003899/0.5027, allocations: 1.731 MB / 422.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009711/0.5037, allocations: 1.013 MB / 423.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005455/0.5042, allocations: 107.3 kB / 423.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.5044, allocations: 55.44 kB / 423.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of SimCode: time 1.382e-06/0.5044, allocations: 0 / 423.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Templates: time 0.0252/0.5296, allocations: 10.86 MB / 434.6 MB, free: 2.555 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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