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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001551/0.001551, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002026/0.002026, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 56.14 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3625, allocations: 50.55 MB / 409.3 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009196/0.3717, allocations: 8.234 MB / 417.5 MB, free: 9.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004421/0.3762, allocations: 2.75 MB / 420.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006621/0.3769, allocations: 23.94 kB / 420.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.3783, allocations: 0.5871 MB / 420.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001204/0.3795, allocations: 0.4963 MB / 421.4 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005658/0.3801, allocations: 279.6 kB / 421.6 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001394/0.3815, allocations: 1.498 MB / 423.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007638/0.3823, allocations: 0.5847 MB / 423.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006792/0.3829, allocations: 0.572 MB / 424.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005655/0.3835, allocations: 0.6183 MB / 424.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.3837, allocations: 140 kB / 425 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002933/0.384, allocations: 188 kB / 425.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.3842, allocations: 282.9 kB / 425.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005507/0.3847, allocations: 0.6765 MB / 426.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00153/0.3863, allocations: 1.757 MB / 427.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3863, allocations: 4 kB / 427.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3863, allocations: 0 / 427.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.3863, allocations: 3.938 kB / 427.9 MB, free: 14.79 MB / 350.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.002264/0.3886, allocations: 1.484 MB / 429.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3886, allocations: 12.03 kB / 429.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007028/0.3894, allocations: 191.3 kB / 429.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.3907, allocations: 0.7658 MB / 430.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.041e-05/0.3907, allocations: 74 kB / 430.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.3909, allocations: 103.9 kB / 430.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.3924, allocations: 0.9425 MB / 431.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/0.3925, allocations: 7.938 kB / 431.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.417e-05/0.3926, allocations: 40 kB / 431.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.3926, allocations: 24 kB / 431.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.3938, allocations: 0.6481 MB / 432.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004698/0.3985, allocations: 3.914 MB / 436.1 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006807/0.3992, allocations: 447.3 kB / 436.6 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005707/0.3998, allocations: 272.6 kB / 436.8 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.855e-05/0.3999, allocations: 4 kB / 436.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.3999, allocations: 42.5 kB / 436.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.525e-06/0.3999, allocations: 0 / 436.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003006/0.4029, allocations: 1.554 MB / 438.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.403, allocations: 81.11 kB / 438.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.404, allocations: 0.8449 MB / 439.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.404, allocations: 33.7 kB / 439.4 MB, free: 2.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004509/0.4045, allocations: 0.5682 MB / 440 MB, free: 2.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.4046, allocations: 157.8 kB / 440.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.4048, allocations: 134.5 kB / 440.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.4049, allocations: 334 kB / 440.6 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003263/0.4052, allocations: 173.9 kB / 440.7 MB, free: 1.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.4058, allocations: 471.5 kB / 441.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009184/0.4067, allocations: 0.6801 MB / 441.9 MB, free: 44 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.4067, allocations: 4 kB / 441.9 MB, free: 40 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001283/0.408, allocations: 0.7786 MB / 442.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.408, allocations: 12.47 kB / 442.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.4081, allocations: 15.94 kB / 442.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002903/0.4083, allocations: 85.67 kB / 442.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/0.4089, allocations: 155.7 kB / 442.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002731/0.4116, allocations: 3.146 MB / 446.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006183/0.4122, allocations: 31.98 kB / 446.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.4123, allocations: 32 kB / 446.1 MB, free: 11.48 MB / 366.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.0004626/0.4128, allocations: 277.3 kB / 446.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.4129, allocations: 94.94 kB / 446.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009501/0.4139, allocations: 0.4993 MB / 447 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.4139, allocations: 4 kB / 447 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.4139, allocations: 7.938 kB / 447 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.4139, allocations: 3.984 kB / 447 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/0.4159, allocations: 1.477 MB / 448.5 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4159, allocations: 0 / 448.5 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.4163, allocations: 71.89 kB / 448.6 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002008/0.4165, allocations: 77.89 kB / 448.6 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/0.4165, allocations: 8 kB / 448.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002257/0.4188, allocations: 3.122 MB / 451.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4188, allocations: 4.031 kB / 451.8 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.42, allocations: 0.8014 MB / 452.6 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.4203, allocations: 200 kB / 452.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.322e-05/0.4204, allocations: 15.94 kB / 452.8 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004109/0.4208, allocations: 31.97 kB / 452.8 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.06e-05/0.4209, allocations: 39.8 kB / 452.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.421, allocations: 19.98 kB / 452.9 MB, free: 4.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007852/0.4218, allocations: 0.5693 MB / 453.4 MB, free: 3.719 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4218, allocations: 0 / 453.4 MB, free: 3.719 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008631/0.4226, allocations: 216 kB / 453.7 MB, free: 3.508 MB / 366.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.0002577/0.4229, allocations: 127.2 kB / 453.8 MB, free: 3.375 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001404/0.4243, allocations: 0.6996 MB / 454.5 MB, free: 2.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4243, allocations: 4 kB / 454.5 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006972/0.4251, allocations: 457.1 kB / 454.9 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.4261, allocations: 245.8 kB / 455.2 MB, free: 1.941 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.4294, allocations: 1.734 MB / 456.9 MB, free: 160 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007353/0.4301, allocations: 1.009 MB / 457.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004063/0.4305, allocations: 107.3 kB / 458 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.4307, allocations: 59.44 kB / 458.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4307, allocations: 0 / 458.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of Templates: time 0.02192/0.4526, allocations: 10.88 MB / 469 MB, free: 4.195 MB / 382.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches