Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,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_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,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_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 104.2 kB / 17.06 MB, free: 5.992 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.001905/0.001905, allocations: 191 kB / 18 MB, free: 5.078 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001538, allocations: 47.91 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2939, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009291/0.3033, allocations: 8.087 MB / 408.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005569/0.3089, allocations: 2.637 MB / 411.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001074/0.31, allocations: 23.94 kB / 411.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001497/0.3115, allocations: 0.5754 MB / 412.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.3127, allocations: 0.4886 MB / 412.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004371/0.3132, allocations: 251.7 kB / 412.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00126/0.3144, allocations: 1.471 MB / 414.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007883/0.3152, allocations: 0.5768 MB / 414.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007747/0.316, allocations: 0.5603 MB / 415.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006866/0.3167, allocations: 0.5989 MB / 416 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001648/0.3169, allocations: 140 kB / 416.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003296/0.3172, allocations: 176 kB / 416.3 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002333/0.3175, allocations: 282.9 kB / 416.6 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006665/0.3182, allocations: 0.6609 MB / 417.2 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.3201, allocations: 1.721 MB / 419 MB, free: 6.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3201, allocations: 0 / 419 MB, free: 6.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3201, allocations: 0 / 419 MB, free: 6.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.3201, allocations: 4 kB / 419 MB, free: 6.57 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00227/0.3224, allocations: 1.445 MB / 420.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.3224, allocations: 11.89 kB / 420.4 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006435/0.3231, allocations: 191.2 kB / 420.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.3245, allocations: 0.7417 MB / 421.3 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.162e-05/0.3246, allocations: 77.98 kB / 421.4 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.3247, allocations: 99.91 kB / 421.5 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.3263, allocations: 0.9308 MB / 422.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.373e-05/0.3264, allocations: 7.984 kB / 422.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-05/0.3265, allocations: 40 kB / 422.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.728e-05/0.3265, allocations: 24 kB / 422.5 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.3278, allocations: 0.6402 MB / 423.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005561/0.3334, allocations: 3.891 MB / 427.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007301/0.3342, allocations: 444.8 kB / 427.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006745/0.3349, allocations: 273.3 kB / 427.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.3349, allocations: 4.328 kB / 427.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.3349, allocations: 34.89 kB / 427.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.806e-06/0.335, allocations: 0 / 427.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.00278/0.3377, allocations: 1.402 MB / 429.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.3378, allocations: 89.09 kB / 429.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.3389, allocations: 0.8291 MB / 430.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.535e-05/0.339, allocations: 29.7 kB / 430.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003986/0.3394, allocations: 0.5564 MB / 430.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.3396, allocations: 157.7 kB / 430.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.3398, allocations: 130.6 kB / 431 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3399, allocations: 330 kB / 431.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003301/0.3403, allocations: 169.9 kB / 431.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005387/0.3408, allocations: 460 kB / 431.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009018/0.3417, allocations: 0.6585 MB / 432.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.3417, allocations: 4 kB / 432.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001357/0.3431, allocations: 0.7668 MB / 433.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3431, allocations: 12.03 kB / 433.4 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.3432, allocations: 8 kB / 433.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002853/0.3435, allocations: 89.61 kB / 433.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.344, allocations: 147.8 kB / 433.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00271/0.3467, allocations: 3.146 MB / 436.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006082/0.3473, allocations: 31.98 kB / 436.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.3474, allocations: 36 kB / 436.8 MB, free: 3.641 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 (84): * Single equations (assignments): 82 * 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.0004233/0.3478, allocations: 270 kB / 437.1 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.3479, allocations: 82.97 kB / 437.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.3489, allocations: 491.1 kB / 437.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.349, allocations: 4 kB / 437.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.349, allocations: 11.94 kB / 437.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.957e-05/0.349, allocations: 3.984 kB / 437.7 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.3511, allocations: 1.436 MB / 439.1 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.3512, allocations: 4.125 kB / 439.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.3515, allocations: 75.83 kB / 439.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002854/0.3518, allocations: 77.84 kB / 439.2 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/0.3518, allocations: 11.98 kB / 439.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002501/0.3543, allocations: 3.123 MB / 442.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3543, allocations: 4.031 kB / 442.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.3556, allocations: 0.7701 MB / 443.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003383/0.356, allocations: 196 kB / 443.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.3561, allocations: 20.06 kB / 443.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.3565, allocations: 27.98 kB / 443.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.377e-05/0.3566, allocations: 27.95 kB / 443.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.3567, allocations: 19.94 kB / 443.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000808/0.3575, allocations: 0.5654 MB / 444 MB, free: 11.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3575, allocations: 0 / 444 MB, free: 11.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008818/0.3584, allocations: 200 kB / 444.2 MB, free: 11.8 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 (38): * Single equations (assignments): 36 * 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.0002169/0.3586, allocations: 127.2 kB / 444.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.3598, allocations: 0.6783 MB / 445 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3598, allocations: 0 / 445 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006366/0.3605, allocations: 449.8 kB / 445.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.3616, allocations: 229 kB / 445.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.3644, allocations: 1.695 MB / 447.4 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005859/0.365, allocations: 1.005 MB / 448.4 MB, free: 7.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003676/0.3654, allocations: 111.2 kB / 448.5 MB, free: 7.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.3655, allocations: 55.44 kB / 448.5 MB, free: 7.332 MB / 366.1 MB Notification: Performance of SimCode: time 1.753e-06/0.3655, allocations: 0 / 448.5 MB, free: 7.332 MB / 366.1 MB Notification: Performance of Templates: time 0.01883/0.3843, allocations: 10.67 MB / 459.2 MB, free: 12.8 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches