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.001763/0.001763, allocations: 112 kB / 17.06 MB, free: 6 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.001865/0.001865, allocations: 192 kB / 18 MB, free: 5.082 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.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 14.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 47.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2763, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008962/0.2854, allocations: 8.086 MB / 408.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004735/0.2901, allocations: 2.637 MB / 411.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007339/0.2909, allocations: 23.94 kB / 411.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001425/0.2924, allocations: 0.5754 MB / 412.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00137/0.2938, allocations: 0.4925 MB / 412.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005354/0.2943, allocations: 243.7 kB / 412.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001473/0.2958, allocations: 1.483 MB / 414.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007746/0.2966, allocations: 0.5807 MB / 414.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007353/0.2973, allocations: 0.5525 MB / 415.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005763/0.2979, allocations: 0.5911 MB / 416 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.2981, allocations: 136 kB / 416.1 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003178/0.2984, allocations: 184 kB / 416.3 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.2986, allocations: 282.9 kB / 416.6 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005691/0.2992, allocations: 0.6648 MB / 417.2 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001711/0.3009, allocations: 1.721 MB / 419 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3009, allocations: 0 / 419 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3009, allocations: 0 / 419 MB, free: 6.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.301, allocations: 0 / 419 MB, free: 6.531 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.002425/0.3034, allocations: 1.453 MB / 420.4 MB, free: 5.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3035, allocations: 15.89 kB / 420.4 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006586/0.3041, allocations: 191.2 kB / 420.6 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.3053, allocations: 0.734 MB / 421.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.044e-05/0.3054, allocations: 78 kB / 421.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.3056, allocations: 99.91 kB / 421.5 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.307, allocations: 0.9346 MB / 422.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.3071, allocations: 0 / 422.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.76e-05/0.3072, allocations: 44 kB / 422.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/0.3072, allocations: 24 kB / 422.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.3084, allocations: 0.6325 MB / 423.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.3134, allocations: 3.887 MB / 427 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006829/0.3141, allocations: 444.6 kB / 427.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005537/0.3147, allocations: 273.3 kB / 427.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.773e-05/0.3147, allocations: 4.328 kB / 427.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.3148, allocations: 38.89 kB / 427.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.595e-06/0.3148, allocations: 0 / 427.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002655/0.3175, allocations: 1.405 MB / 429.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.3175, allocations: 81.11 kB / 429.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.3185, allocations: 0.8291 MB / 430.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/0.3186, allocations: 33.7 kB / 430.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003475/0.3189, allocations: 0.5564 MB / 430.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.506e-05/0.319, allocations: 153.8 kB / 430.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.3192, allocations: 130.6 kB / 431 MB, free: 10.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3193, allocations: 334 kB / 431.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.3197, allocations: 169.9 kB / 431.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.3202, allocations: 464 kB / 431.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008568/0.321, allocations: 0.6546 MB / 432.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.321, allocations: 8 kB / 432.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001218/0.3223, allocations: 0.7706 MB / 433.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.3223, allocations: 8 kB / 433.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.3223, allocations: 12 kB / 433.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002544/0.3226, allocations: 85.88 kB / 433.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000472/0.3231, allocations: 151.7 kB / 433.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/0.3253, allocations: 3.138 MB / 436.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005106/0.3258, allocations: 31.98 kB / 436.8 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.3259, allocations: 36 kB / 436.8 MB, free: 3.602 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.0003676/0.3262, allocations: 267.4 kB / 437.1 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.3264, allocations: 82.97 kB / 437.1 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.3275, allocations: 0.4951 MB / 437.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3275, allocations: 4 kB / 437.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3275, allocations: 0 / 437.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3275, allocations: 0 / 437.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.3307, allocations: 1.443 MB / 439.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/0.3307, allocations: 0 / 439.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/0.3312, allocations: 76.06 kB / 439.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003109/0.3315, allocations: 69.67 kB / 439.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.847e-05/0.3315, allocations: 8 kB / 439.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003351/0.3349, allocations: 3.131 MB / 442.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.3349, allocations: 4.031 kB / 442.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.3369, allocations: 0.7701 MB / 443.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004608/0.3374, allocations: 200 kB / 443.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.3375, allocations: 11.94 kB / 443.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006766/0.3382, allocations: 27.98 kB / 443.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.3384, allocations: 31.95 kB / 443.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.3384, allocations: 15.94 kB / 443.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001228/0.3396, allocations: 0.5654 MB / 444 MB, free: 11.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3397, allocations: 3.938 kB / 444 MB, free: 11.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001476/0.3411, allocations: 207.9 kB / 444.2 MB, free: 11.75 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.0003016/0.3415, allocations: 123.2 kB / 444.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.3432, allocations: 0.6864 MB / 445 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/0.3432, allocations: 4 kB / 445 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009411/0.3441, allocations: 433.1 kB / 445.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.3457, allocations: 233.4 kB / 445.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004181/0.3499, allocations: 1.695 MB / 447.4 MB, free: 8.496 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008074/0.3507, allocations: 1.009 MB / 448.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005334/0.3513, allocations: 103.2 kB / 448.5 MB, free: 7.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.3515, allocations: 55.44 kB / 448.5 MB, free: 7.301 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3515, allocations: 4 kB / 448.5 MB, free: 7.297 MB / 366.1 MB Notification: Performance of Templates: time 0.03028/0.3818, allocations: 10.67 MB / 459.2 MB, free: 12.75 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