Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001433/0.001433, allocations: 106.6 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 217.9 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2641, allocations: 50.54 MB / 409.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008727/0.2728, allocations: 8.101 MB / 418 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004405/0.2773, allocations: 2.665 MB / 420.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.2784, allocations: 27.94 kB / 420.7 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001617/0.28, allocations: 0.5403 MB / 421.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001452/0.2815, allocations: 472.3 kB / 421.7 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006396/0.2822, allocations: 255.7 kB / 422 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001802/0.284, allocations: 1.467 MB / 423.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008551/0.2848, allocations: 0.5846 MB / 424 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008536/0.2857, allocations: 0.5564 MB / 424.6 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000873/0.2866, allocations: 0.6067 MB / 425.2 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002637/0.2869, allocations: 136 kB / 425.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004313/0.2873, allocations: 172 kB / 425.5 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002568/0.2876, allocations: 282.9 kB / 425.8 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007848/0.2884, allocations: 0.6648 MB / 426.4 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001749/0.2901, allocations: 1.73 MB / 428.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2901, allocations: 3.938 kB / 428.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2901, allocations: 0 / 428.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.043e-05/0.2902, allocations: 3.938 kB / 428.2 MB, free: 15.15 MB / 350.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.002734/0.2929, allocations: 1.441 MB / 429.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.293, allocations: 12.03 kB / 429.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006546/0.2936, allocations: 183.3 kB / 429.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.2949, allocations: 0.7494 MB / 430.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.193e-05/0.295, allocations: 74 kB / 430.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.2951, allocations: 96 kB / 430.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.2967, allocations: 0.9347 MB / 431.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.2967, allocations: 7.891 kB / 431.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.78e-05/0.2968, allocations: 40 kB / 431.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.2969, allocations: 24 kB / 431.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.298, allocations: 0.6325 MB / 432.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004461/0.3025, allocations: 3.891 MB / 436.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006365/0.3031, allocations: 440 kB / 436.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005406/0.3037, allocations: 273.3 kB / 436.9 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.3037, allocations: 8.328 kB / 437 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.3037, allocations: 38.89 kB / 437 MB, free: 5.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.144e-06/0.3037, allocations: 0 / 437 MB, free: 5.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002452/0.3062, allocations: 1.401 MB / 438.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.3063, allocations: 81.11 kB / 438.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.3073, allocations: 0.8291 MB / 439.3 MB, free: 3.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.3073, allocations: 33.7 kB / 439.3 MB, free: 3.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003549/0.3077, allocations: 0.5565 MB / 439.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.3078, allocations: 161.7 kB / 440 MB, free: 2.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.308, allocations: 130.5 kB / 440.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3081, allocations: 334 kB / 440.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003151/0.3084, allocations: 165.9 kB / 440.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004765/0.3089, allocations: 460 kB / 441.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008366/0.3098, allocations: 0.6622 MB / 441.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3098, allocations: 4 kB / 441.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001245/0.311, allocations: 0.7627 MB / 442.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3111, allocations: 8 kB / 442.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.3111, allocations: 12.38 kB / 442.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002502/0.3113, allocations: 93.55 kB / 442.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004446/0.3118, allocations: 147.8 kB / 442.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/0.3141, allocations: 3.138 MB / 445.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005009/0.3146, allocations: 31.98 kB / 446 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.412e-05/0.3146, allocations: 32 kB / 446 MB, free: 12.23 MB / 366.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.0003487/0.315, allocations: 270.8 kB / 446.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.3151, allocations: 90.88 kB / 446.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008574/0.316, allocations: 495.4 kB / 446.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.316, allocations: 4 kB / 446.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.316, allocations: 3.938 kB / 446.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.316, allocations: 3.984 kB / 446.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002006/0.3181, allocations: 1.435 MB / 448.3 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3181, allocations: 0 / 448.3 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002941/0.3184, allocations: 75.89 kB / 448.4 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00019/0.3186, allocations: 66.03 kB / 448.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/0.3186, allocations: 15.98 kB / 448.4 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002194/0.3208, allocations: 3.123 MB / 451.6 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.3208, allocations: 7.969 kB / 451.6 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.322, allocations: 0.7661 MB / 452.3 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002813/0.3222, allocations: 196 kB / 452.5 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.3224, allocations: 15.94 kB / 452.5 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004033/0.3228, allocations: 23.98 kB / 452.6 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.071e-05/0.3228, allocations: 43.89 kB / 452.6 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.3229, allocations: 8.125 kB / 452.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000701/0.3236, allocations: 0.5654 MB / 453.2 MB, free: 4.602 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3236, allocations: 0 / 453.2 MB, free: 4.602 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007572/0.3243, allocations: 203.9 kB / 453.4 MB, free: 4.402 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.000206/0.3246, allocations: 131.4 kB / 453.5 MB, free: 4.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.3257, allocations: 0.6834 MB / 454.2 MB, free: 3.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3257, allocations: 4 kB / 454.2 MB, free: 3.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005985/0.3263, allocations: 453.6 kB / 454.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009772/0.3273, allocations: 233.1 kB / 454.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.33, allocations: 1.727 MB / 456.6 MB, free: 1.082 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.3305, allocations: 1.009 MB / 457.6 MB, free: 48 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.3307, allocations: 59.48 kB / 457.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3307, allocations: 0 / 457.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of Templates: time 0.02163/0.3523, allocations: 21.12 MB / 478.8 MB, free: 10.9 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches