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.001474/0.001474, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001586/0.001586, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.493/1.493, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001054, allocations: 55.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2631, allocations: 49.42 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008412/0.2715, allocations: 8.084 MB / 409.5 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004623/0.2762, allocations: 2.641 MB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009595/0.2772, allocations: 23.94 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.2789, allocations: 0.5441 MB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001884/0.2808, allocations: 468.3 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000617/0.2815, allocations: 251.7 kB / 413.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001702/0.2832, allocations: 1.474 MB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008409/0.284, allocations: 0.5807 MB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007789/0.2848, allocations: 0.5525 MB / 416 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006375/0.2855, allocations: 0.6027 MB / 416.6 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001675/0.2856, allocations: 140 kB / 416.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003599/0.286, allocations: 183.9 kB / 416.9 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.2862, allocations: 279 kB / 417.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005729/0.2868, allocations: 0.657 MB / 417.9 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001618/0.2884, allocations: 1.725 MB / 419.6 MB, free: 6.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2884, allocations: 4 kB / 419.6 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2884, allocations: 0 / 419.6 MB, free: 6.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.917e-05/0.2885, allocations: 0 / 419.6 MB, free: 6.578 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.002386/0.2909, allocations: 1.455 MB / 421 MB, free: 5.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2909, allocations: 11.89 kB / 421.1 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006497/0.2916, allocations: 191.3 kB / 421.2 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.2927, allocations: 0.7301 MB / 422 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.576e-05/0.2928, allocations: 78 kB / 422 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.2929, allocations: 99.91 kB / 422.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.2944, allocations: 0.9307 MB / 423.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.253e-05/0.2944, allocations: 4 kB / 423.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.87e-05/0.2945, allocations: 40 kB / 423.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.2946, allocations: 31.94 kB / 423.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.2957, allocations: 0.6324 MB / 423.8 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004933/0.3007, allocations: 3.883 MB / 427.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006452/0.3013, allocations: 446.3 kB / 428.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005604/0.3019, allocations: 277.3 kB / 428.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.3019, allocations: 4.328 kB / 428.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.302, allocations: 34.89 kB / 428.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.415e-06/0.302, allocations: 3.938 kB / 428.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002613/0.3046, allocations: 1.406 MB / 429.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.3047, allocations: 81.11 kB / 429.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.3057, allocations: 0.8291 MB / 430.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.3057, allocations: 29.7 kB / 430.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/0.3061, allocations: 0.5565 MB / 431.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.3062, allocations: 157.7 kB / 431.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.3064, allocations: 130.6 kB / 431.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3065, allocations: 333.9 kB / 431.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.3068, allocations: 165.9 kB / 432.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.3073, allocations: 464 kB / 432.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008457/0.3081, allocations: 0.6546 MB / 433.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3082, allocations: 4 kB / 433.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001236/0.3094, allocations: 0.7666 MB / 434 MB, free: 7.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.3094, allocations: 12 kB / 434 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3095, allocations: 8 kB / 434 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002687/0.3097, allocations: 89.86 kB / 434.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004661/0.3102, allocations: 151.8 kB / 434.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002358/0.3126, allocations: 3.142 MB / 437.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000602/0.3132, allocations: 35.92 kB / 437.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.3133, allocations: 36 kB / 437.4 MB, free: 3.652 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.0003966/0.3137, allocations: 266.1 kB / 437.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.3138, allocations: 82.97 kB / 437.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000904/0.3147, allocations: 495.1 kB / 438.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3147, allocations: 7.938 kB / 438.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3147, allocations: 4 kB / 438.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3147, allocations: 3.984 kB / 438.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/0.3168, allocations: 1.436 MB / 439.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.3168, allocations: 4 kB / 439.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002968/0.3171, allocations: 72.11 kB / 439.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002061/0.3173, allocations: 77.66 kB / 439.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.3173, allocations: 11.98 kB / 439.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002151/0.3195, allocations: 3.127 MB / 443 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.3195, allocations: 7.984 kB / 443 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.3207, allocations: 0.7662 MB / 443.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/0.321, allocations: 196.1 kB / 444 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.3211, allocations: 19.94 kB / 444 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.3216, allocations: 27.97 kB / 444 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.77e-05/0.3216, allocations: 23.97 kB / 444 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.3217, allocations: 19.98 kB / 444 MB, free: 12.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007089/0.3224, allocations: 0.5615 MB / 444.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3224, allocations: 4 kB / 444.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008285/0.3232, allocations: 207.9 kB / 444.8 MB, free: 11.81 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.0002222/0.3234, allocations: 115.3 kB / 444.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.3246, allocations: 0.6904 MB / 445.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3246, allocations: 0 / 445.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006077/0.3252, allocations: 445 kB / 446.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.3263, allocations: 223.6 kB / 446.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002738/0.329, allocations: 1.737 MB / 448 MB, free: 8.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005418/0.3296, allocations: 1.001 MB / 449 MB, free: 7.473 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.3297, allocations: 59.44 kB / 449.1 MB, free: 7.414 MB / 366.1 MB Notification: Performance of SimCode: time 2.505e-06/0.3298, allocations: 0 / 449.1 MB, free: 7.414 MB / 366.1 MB Notification: Performance of Templates: time 0.02397/0.3537, allocations: 21.12 MB / 470.2 MB, free: 2.348 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/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