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.000983/0.000983, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001059/0.001059, allocations: 201.2 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.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 55.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2834, allocations: 50.56 MB / 409.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009116/0.2926, allocations: 8.241 MB / 417.5 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004568/0.2972, allocations: 2.746 MB / 420.2 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008628/0.2981, allocations: 23.94 kB / 420.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001376/0.2995, allocations: 0.5675 MB / 420.8 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001067/0.3006, allocations: 472.2 kB / 421.3 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005591/0.3012, allocations: 271.6 kB / 421.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.3025, allocations: 1.51 MB / 423.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007244/0.3032, allocations: 0.573 MB / 423.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006727/0.3039, allocations: 0.5798 MB / 424.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007159/0.3046, allocations: 0.6143 MB / 424.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002129/0.3049, allocations: 140 kB / 425 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003976/0.3053, allocations: 184 kB / 425.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002516/0.3055, allocations: 287 kB / 425.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006995/0.3062, allocations: 0.6725 MB / 426.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001977/0.3082, allocations: 1.769 MB / 427.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3082, allocations: 0 / 427.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3082, allocations: 0 / 427.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.3083, allocations: 0 / 427.9 MB, free: 14.86 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.002449/0.3107, allocations: 1.484 MB / 429.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3108, allocations: 8.031 kB / 429.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00072/0.3115, allocations: 199.3 kB / 429.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.3127, allocations: 0.7619 MB / 430.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-05/0.3127, allocations: 74 kB / 430.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.3129, allocations: 103.9 kB / 430.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.3144, allocations: 0.9386 MB / 431.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.3145, allocations: 7.875 kB / 431.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.127e-05/0.3145, allocations: 44 kB / 431.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.196e-05/0.3146, allocations: 27.98 kB / 431.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.3158, allocations: 0.6481 MB / 432.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005462/0.3213, allocations: 3.91 MB / 436.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007157/0.3221, allocations: 451.6 kB / 436.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006025/0.3227, allocations: 272.6 kB / 436.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.408e-05/0.3227, allocations: 4 kB / 436.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.3228, allocations: 38.56 kB / 436.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 4.048e-06/0.3228, allocations: 0 / 436.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003165/0.326, allocations: 1.554 MB / 438.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.457e-05/0.3261, allocations: 81.11 kB / 438.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.3272, allocations: 0.8449 MB / 439.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.3273, allocations: 33.7 kB / 439.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004122/0.3277, allocations: 0.5682 MB / 439.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.3278, allocations: 157.8 kB / 440.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.328, allocations: 134.5 kB / 440.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002246/0.3283, allocations: 334 kB / 440.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/0.3286, allocations: 173.9 kB / 440.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005249/0.3292, allocations: 471.6 kB / 441.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000963/0.3301, allocations: 0.6762 MB / 441.8 MB, free: 116 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.3301, allocations: 4 kB / 441.8 MB, free: 112 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001328/0.3315, allocations: 0.779 MB / 442.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.3315, allocations: 16.03 kB / 442.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.3315, allocations: 15.92 kB / 442.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.3318, allocations: 81.67 kB / 442.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004865/0.3323, allocations: 159.7 kB / 442.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/0.3349, allocations: 3.138 MB / 446 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006826/0.3356, allocations: 35.98 kB / 446 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.3357, allocations: 32 kB / 446.1 MB, free: 11.55 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.0004983/0.3362, allocations: 277.5 kB / 446.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.3363, allocations: 94.81 kB / 446.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.3374, allocations: 0.4992 MB / 446.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3374, allocations: 8 kB / 446.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3374, allocations: 0 / 446.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.3374, allocations: 8.016 kB / 446.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.3398, allocations: 1.47 MB / 448.4 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.3398, allocations: 4 kB / 448.4 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.3401, allocations: 72.11 kB / 448.5 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002009/0.3403, allocations: 81.61 kB / 448.6 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.3403, allocations: 8 kB / 448.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002393/0.3427, allocations: 3.127 MB / 451.7 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3428, allocations: 4.062 kB / 451.7 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.3441, allocations: 0.8092 MB / 452.5 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003378/0.3445, allocations: 200 kB / 452.7 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.3446, allocations: 19.94 kB / 452.7 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004273/0.345, allocations: 27.97 kB / 452.8 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.3451, allocations: 35.72 kB / 452.8 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/0.3452, allocations: 19.98 kB / 452.8 MB, free: 4.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008283/0.346, allocations: 0.5693 MB / 453.4 MB, free: 3.781 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.346, allocations: 4 kB / 453.4 MB, free: 3.777 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008885/0.3469, allocations: 212 kB / 453.6 MB, free: 3.57 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.0002626/0.3472, allocations: 126.1 kB / 453.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.3484, allocations: 0.7072 MB / 454.4 MB, free: 2.711 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3485, allocations: 0 / 454.4 MB, free: 2.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006641/0.3491, allocations: 453.2 kB / 454.9 MB, free: 2.242 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.3502, allocations: 235.3 kB / 455.1 MB, free: 2.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.3531, allocations: 1.733 MB / 456.8 MB, free: 236 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000642/0.3538, allocations: 1.009 MB / 457.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003972/0.3542, allocations: 111.3 kB / 457.9 MB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.3543, allocations: 59.44 kB / 458 MB, free: 15.02 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3543, allocations: 0 / 458 MB, free: 15.02 MB / 382.1 MB Notification: Performance of Templates: time 0.01947/0.3738, allocations: 10.88 MB / 468.9 MB, free: 4.262 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