Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001096/0.001096, allocations: 109.5 kB / 17.06 MB, free: 6.004 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.001111/0.001111, allocations: 191 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001015/0.001015, allocations: 43.94 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2937, allocations: 49.44 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009738/0.3034, allocations: 8.214 MB / 409 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005186/0.3087, allocations: 2.7 MB / 411.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007207/0.3094, allocations: 23.94 kB / 411.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.3109, allocations: 0.548 MB / 412.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.3122, allocations: 482.7 kB / 412.7 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.3127, allocations: 259.7 kB / 412.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.3141, allocations: 1.502 MB / 414.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007472/0.3148, allocations: 0.5925 MB / 415 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006155/0.3154, allocations: 0.5564 MB / 415.6 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006193/0.3161, allocations: 0.6105 MB / 416.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.3162, allocations: 140 kB / 416.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003356/0.3166, allocations: 176 kB / 416.5 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.3168, allocations: 290.9 kB / 416.8 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006156/0.3174, allocations: 0.6726 MB / 417.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001882/0.3193, allocations: 1.759 MB / 419.2 MB, free: 6.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3194, allocations: 7.938 kB / 419.2 MB, free: 6.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3194, allocations: 0 / 419.2 MB, free: 6.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.3194, allocations: 0 / 419.2 MB, free: 6.301 MB / 334.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.002583/0.322, allocations: 1.518 MB / 420.8 MB, free: 4.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.322, allocations: 11.89 kB / 420.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006821/0.3227, allocations: 196 kB / 421 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.324, allocations: 0.7664 MB / 421.7 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.3241, allocations: 74 kB / 421.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.3242, allocations: 100 kB / 421.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.3257, allocations: 0.9386 MB / 422.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.325e-05/0.3257, allocations: 11.94 kB / 422.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.328e-05/0.3258, allocations: 40 kB / 422.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.3258, allocations: 28 kB / 422.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.3271, allocations: 0.6481 MB / 423.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004834/0.3319, allocations: 3.927 MB / 427.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006814/0.3326, allocations: 449.4 kB / 427.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005879/0.3332, allocations: 272.7 kB / 428.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.283e-05/0.3333, allocations: 7.984 kB / 428.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.3333, allocations: 34.56 kB / 428.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.664e-06/0.3333, allocations: 0 / 428.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002936/0.3363, allocations: 1.57 MB / 429.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.3363, allocations: 81.11 kB / 429.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009934/0.3373, allocations: 0.8489 MB / 430.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.3374, allocations: 29.7 kB / 430.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003782/0.3378, allocations: 0.5814 MB / 431.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.3379, allocations: 170.6 kB / 431.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.3381, allocations: 134.6 kB / 431.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3382, allocations: 333.9 kB / 432 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000337/0.3385, allocations: 173.9 kB / 432.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004923/0.339, allocations: 471.6 kB / 432.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000926/0.3399, allocations: 0.6796 MB / 433.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.34, allocations: 4 kB / 433.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001252/0.3412, allocations: 0.795 MB / 434.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3413, allocations: 12 kB / 434.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.3413, allocations: 8 kB / 434.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/0.3415, allocations: 77.69 kB / 434.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004896/0.342, allocations: 163.9 kB / 434.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/0.3444, allocations: 3.146 MB / 437.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005334/0.345, allocations: 31.94 kB / 437.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.455e-05/0.345, allocations: 39.98 kB / 437.5 MB, free: 2.891 MB / 350.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.0003953/0.3454, allocations: 265.6 kB / 437.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.3456, allocations: 91.44 kB / 437.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009521/0.3465, allocations: 0.5108 MB / 438.4 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.3466, allocations: 4 kB / 438.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3466, allocations: 3.984 kB / 438.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3466, allocations: 0 / 438.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/0.3487, allocations: 1.478 MB / 439.9 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.3487, allocations: 4 kB / 439.9 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.349, allocations: 80.11 kB / 440 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001922/0.3492, allocations: 69.67 kB / 440 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.3493, allocations: 12 kB / 440.1 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002077/0.3513, allocations: 3.122 MB / 443.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3514, allocations: 0 / 443.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.3526, allocations: 0.8099 MB / 444 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/0.3529, allocations: 208.5 kB / 444.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.504e-05/0.353, allocations: 11.94 kB / 444.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004075/0.3534, allocations: 31.97 kB / 444.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.824e-05/0.3535, allocations: 31.95 kB / 444.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.018e-05/0.3535, allocations: 19.94 kB / 444.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007042/0.3542, allocations: 0.5732 MB / 444.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.392e-06/0.3542, allocations: 0 / 444.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009082/0.3551, allocations: 211.9 kB / 445.1 MB, free: 10.92 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.0002287/0.3554, allocations: 131 kB / 445.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.3565, allocations: 0.7095 MB / 445.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3566, allocations: 0 / 445.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006385/0.3572, allocations: 458.2 kB / 446.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00098/0.3582, allocations: 237 kB / 446.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.3607, allocations: 1.751 MB / 448.3 MB, free: 7.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005291/0.3612, allocations: 1.017 MB / 449.3 MB, free: 6.496 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003662/0.3616, allocations: 107.3 kB / 449.5 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.3617, allocations: 55.44 kB / 449.5 MB, free: 6.332 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3617, allocations: 0 / 449.5 MB, free: 6.332 MB / 366.1 MB Notification: Performance of Templates: time 0.01783/0.3795, allocations: 10.85 MB / 460.4 MB, free: 11.61 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches