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.001421/0.001421, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00189/0.00189, allocations: 201.8 kB / 18.91 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 67.5 kB / 307.1 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0907/0.09198, allocations: 50.54 MB / 357.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009823/0.1018, allocations: 8.205 MB / 365.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004705/0.1066, allocations: 2.723 MB / 368.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1077, allocations: 27.88 kB / 368.6 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001732/0.1095, allocations: 0.4903 MB / 369.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.111, allocations: 417.1 kB / 369.5 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007188/0.1117, allocations: 235.8 kB / 369.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001881/0.1136, allocations: 1.506 MB / 371.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008741/0.1145, allocations: 0.5808 MB / 371.8 MB, free: 120 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1606/0.2751, allocations: 0.5649 MB / 372.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.2762, allocations: 0.611 MB / 373 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003899/0.2766, allocations: 140.1 kB / 373.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006218/0.2772, allocations: 181.8 kB / 373.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002825/0.2775, allocations: 283.3 kB / 373.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001143/0.2787, allocations: 0.6765 MB / 374.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001977/0.2807, allocations: 1.433 MB / 375.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2807, allocations: 1.062 kB / 375.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2807, allocations: 2.812 kB / 375.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.293e-05/0.2807, allocations: 0 / 375.7 MB, free: 10.37 MB / 302.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.003253/0.284, allocations: 1.478 MB / 377.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2841, allocations: 9.625 kB / 377.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008417/0.2849, allocations: 201.9 kB / 377.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.2862, allocations: 0.7502 MB / 378.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6e-05/0.2862, allocations: 74.16 kB / 378.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.2864, allocations: 103.8 kB / 378.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/0.2883, allocations: 0.9494 MB / 379.3 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.26e-05/0.2883, allocations: 3.125 kB / 379.3 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.178e-05/0.2884, allocations: 38.47 kB / 379.3 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.2884, allocations: 24.06 kB / 379.3 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.2898, allocations: 0.65 MB / 380 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005641/0.2955, allocations: 3.949 MB / 383.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006832/0.2962, allocations: 451.4 kB / 384.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005623/0.2968, allocations: 271.6 kB / 384.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.2968, allocations: 6.344 kB / 384.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.2969, allocations: 40.84 kB / 384.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.084e-06/0.2969, allocations: 4 kB / 384.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002987/0.2999, allocations: 1.537 MB / 386.2 MB, free: 5.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.2999, allocations: 92.7 kB / 386.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.301, allocations: 0.8446 MB / 387.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.301, allocations: 32.02 kB / 387.2 MB, free: 4.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002602/0.3013, allocations: 0.571 MB / 387.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.163e-05/0.3014, allocations: 161.6 kB / 387.9 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3015, allocations: 132.7 kB / 388 MB, free: 3.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.671e-05/0.3016, allocations: 332.6 kB / 388.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.3019, allocations: 179.1 kB / 388.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000439/0.3024, allocations: 470.6 kB / 389 MB, free: 3.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008063/0.3032, allocations: 0.6694 MB / 389.7 MB, free: 2.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3032, allocations: 2.469 kB / 389.7 MB, free: 2.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001299/0.3045, allocations: 0.7973 MB / 390.5 MB, free: 2.336 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3046, allocations: 12.06 kB / 390.5 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.3046, allocations: 9.281 kB / 390.5 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/0.3048, allocations: 80.3 kB / 390.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005015/0.3054, allocations: 159.5 kB / 390.7 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/0.3073, allocations: 3.142 MB / 393.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006886/0.308, allocations: 41.08 kB / 393.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.978e-05/0.3081, allocations: 31.53 kB / 393.9 MB, free: 15.21 MB / 318.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.0004557/0.3085, allocations: 263 kB / 394.2 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.3087, allocations: 93.47 kB / 394.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009961/0.3097, allocations: 0.5042 MB / 394.8 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3097, allocations: 9.469 kB / 394.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3097, allocations: 1.438 kB / 394.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3097, allocations: 0 / 394.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002346/0.3121, allocations: 1.482 MB / 396.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.3121, allocations: 1.906 kB / 396.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/0.3125, allocations: 73.34 kB / 396.3 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.3127, allocations: 71.86 kB / 396.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/0.3127, allocations: 16.14 kB / 396.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00231/0.315, allocations: 3.128 MB / 399.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3151, allocations: 2.75 kB / 399.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.3165, allocations: 0.801 MB / 400.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003588/0.3168, allocations: 201.9 kB / 400.6 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.317, allocations: 12.64 kB / 400.6 MB, free: 9.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004719/0.3174, allocations: 28.11 kB / 400.6 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.315e-05/0.3175, allocations: 38.95 kB / 400.6 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.3176, allocations: 19.06 kB / 400.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008254/0.3184, allocations: 0.5745 MB / 401.2 MB, free: 9.617 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3184, allocations: 0 / 401.2 MB, free: 9.617 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00101/0.3194, allocations: 209.1 kB / 401.4 MB, free: 9.598 MB / 318.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.0002536/0.3197, allocations: 123.2 kB / 401.6 MB, free: 9.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.3212, allocations: 0.7205 MB / 402.3 MB, free: 9.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3212, allocations: 1.375 kB / 402.3 MB, free: 9.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007028/0.3219, allocations: 456.1 kB / 402.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.3231, allocations: 230.9 kB / 403 MB, free: 8.629 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003133/0.3263, allocations: 2.209 MB / 405.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.3269, allocations: 1.014 MB / 406.2 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.3271, allocations: 62.45 kB / 406.2 MB, free: 6.207 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3271, allocations: 3.344 kB / 406.2 MB, free: 6.207 MB / 318.1 MB Notification: Performance of Templates: time 0.02464/0.3517, allocations: 21.34 MB / 427.6 MB, free: 2.348 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/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