Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001118, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001192/0.001192, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.9 MB, free: 10.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59 kB / 306.9 MB, free: 1.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.09154, allocations: 50.53 MB / 357.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.008027/0.0996, allocations: 7.965 MB / 365.4 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004005/0.1036, allocations: 2.607 MB / 368 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008761/0.1045, allocations: 23.94 kB / 368 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.1062, allocations: 494 kB / 368.5 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001253/0.1075, allocations: 401.2 kB / 368.9 MB, free: 2.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005396/0.108, allocations: 211.9 kB / 369.1 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00156/0.1096, allocations: 1.354 MB / 370.5 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007402/0.1103, allocations: 0.4928 MB / 371 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000726/0.1111, allocations: 0.4899 MB / 371.5 MB, free: 400 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1524/0.2635, allocations: 0.5424 MB / 372 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004045/0.2639, allocations: 83.97 kB / 372.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004962/0.2644, allocations: 127.1 kB / 372.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.2646, allocations: 219 kB / 372.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005823/0.2652, allocations: 0.6035 MB / 373 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.2665, allocations: 1.366 MB / 374.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2665, allocations: 2.594 kB / 374.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2665, allocations: 1.984 kB / 374.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.046e-05/0.2666, allocations: 0 / 374.4 MB, free: 10.84 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002313/0.2689, allocations: 1.432 MB / 375.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.2689, allocations: 8.969 kB / 375.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000603/0.2695, allocations: 168.3 kB / 376 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.2706, allocations: 0.7209 MB / 376.7 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.626e-05/0.2706, allocations: 69 kB / 376.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.2707, allocations: 96.86 kB / 376.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.2723, allocations: 0.921 MB / 377.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.247e-05/0.2723, allocations: 9.562 kB / 377.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.185e-05/0.2724, allocations: 36.81 kB / 377.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.2724, allocations: 24.97 kB / 377.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.2736, allocations: 0.624 MB / 378.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004547/0.2782, allocations: 3.911 MB / 382.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.2787, allocations: 354.9 kB / 382.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.2789, allocations: 143.4 kB / 382.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.279, allocations: 4.188 kB / 382.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.279, allocations: 37.8 kB / 382.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.314e-06/0.279, allocations: 4 kB / 382.9 MB, free: 6.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002137/0.2812, allocations: 1.191 MB / 384.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.2812, allocations: 81.64 kB / 384.2 MB, free: 6.121 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.2822, allocations: 0.8237 MB / 385 MB, free: 5.762 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.2823, allocations: 31.17 kB / 385.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003026/0.2826, allocations: 0.5651 MB / 385.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.267e-05/0.2827, allocations: 131.3 kB / 385.8 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.2828, allocations: 127.6 kB / 385.9 MB, free: 5.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.02e-05/0.2829, allocations: 332.1 kB / 386.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/0.2832, allocations: 151.3 kB / 386.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003974/0.2836, allocations: 466.4 kB / 386.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.2843, allocations: 0.6295 MB / 387.4 MB, free: 3.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2844, allocations: 2.375 kB / 387.4 MB, free: 3.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001082/0.2854, allocations: 0.7006 MB / 388.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.2855, allocations: 15.66 kB / 388.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.2855, allocations: 10.78 kB / 388.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.2857, allocations: 31.86 kB / 388.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005059/0.2862, allocations: 164.2 kB / 388.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007229/0.2869, allocations: 1.296 MB / 389.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005642/0.2875, allocations: 38.8 kB / 389.7 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.455e-05/0.2875, allocations: 32 kB / 389.7 MB, free: 2.164 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003487/0.2879, allocations: 258.8 kB / 390 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.288, allocations: 87 kB / 390.1 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006743/0.2887, allocations: 373.8 kB / 390.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2887, allocations: 7.906 kB / 390.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.2887, allocations: 0 / 390.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.2887, allocations: 3.938 kB / 390.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.2904, allocations: 1.277 MB / 391.7 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2904, allocations: 1.406 kB / 391.7 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.2907, allocations: 72.44 kB / 391.8 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.38e-05/0.2908, allocations: 21.25 kB / 391.8 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.2909, allocations: 13.53 kB / 391.8 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006636/0.2915, allocations: 1.273 MB / 393.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2915, allocations: 5.875 kB / 393.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009765/0.2925, allocations: 0.6261 MB / 393.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002724/0.2928, allocations: 192.1 kB / 393.9 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-05/0.2929, allocations: 8.562 kB / 393.9 MB, free: 15.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003746/0.2933, allocations: 24.05 kB / 393.9 MB, free: 15.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.2934, allocations: 26.23 kB / 394 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.2934, allocations: 16.78 kB / 394 MB, free: 15.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007591/0.2942, allocations: 0.5634 MB / 394.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2942, allocations: 0 / 394.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008151/0.295, allocations: 188.4 kB / 394.7 MB, free: 14.88 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0002037/0.2952, allocations: 125.1 kB / 394.9 MB, free: 14.78 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009391/0.2962, allocations: 0.5126 MB / 395.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.2962, allocations: 1.062 kB / 395.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004006/0.2966, allocations: 265.7 kB / 395.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.2976, allocations: 198.1 kB / 395.8 MB, free: 14.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.3005, allocations: 2.144 MB / 398 MB, free: 12.85 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.301, allocations: 0.9965 MB / 399 MB, free: 12.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.3012, allocations: 59.5 kB / 399 MB, free: 12.01 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3012, allocations: 2.734 kB / 399 MB, free: 12.01 MB / 318.1 MB Notification: Performance of Templates: time 0.01939/0.3206, allocations: 15.71 MB / 414.7 MB, free: 15.63 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches