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.001385/0.001385, allocations: 97.33 kB / 16.3 MB, free: 5.578 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.001517/0.001517, allocations: 182.3 kB / 17.2 MB, free: 5.512 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.303/1.303, allocations: 223.2 MB / 241.1 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002572, allocations: 7.938 kB / 300.7 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09821, allocations: 50.41 MB / 351.1 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006571/0.1048, allocations: 6.465 MB / 357.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00385/0.1087, allocations: 2.527 MB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005246/0.1093, allocations: 23.94 kB / 360.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.1104, allocations: 465.8 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008632/0.1113, allocations: 486.6 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.1116, allocations: 155.8 kB / 361.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.1128, allocations: 1.037 MB / 362.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005383/0.1134, allocations: 415.2 kB / 362.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004431/0.1138, allocations: 438.2 kB / 363.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004575/0.1143, allocations: 485.8 kB / 363.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.017e-05/0.1144, allocations: 64 kB / 363.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.1146, allocations: 91.98 kB / 363.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.1147, allocations: 179.3 kB / 363.9 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.1149, allocations: 261.1 kB / 364.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009966/0.1159, allocations: 1.305 MB / 365.5 MB, free: 5.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1159, allocations: 0 / 365.5 MB, free: 5.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1159, allocations: 3.938 kB / 365.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.991e-05/0.116, allocations: 0 / 365.5 MB, free: 5.617 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001825/0.1178, allocations: 1.25 MB / 366.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1179, allocations: 8.031 kB / 366.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004906/0.1183, allocations: 178.4 kB / 366.9 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009595/0.1193, allocations: 0.699 MB / 367.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.506e-05/0.1194, allocations: 70 kB / 367.7 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.1195, allocations: 96 kB / 367.8 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.1209, allocations: 0.919 MB / 368.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.381e-05/0.121, allocations: 11.91 kB / 368.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.558e-05/0.1211, allocations: 47.94 kB / 368.7 MB, free: 2.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.1211, allocations: 24 kB / 368.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.1222, allocations: 0.6325 MB / 369.4 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1909/0.3131, allocations: 3.891 MB / 373.3 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007006/0.3138, allocations: 440.6 kB / 373.7 MB, free: 21.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.3139, allocations: 5.625 kB / 373.7 MB, free: 21.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.3139, allocations: 38.36 kB / 373.8 MB, free: 21.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.815e-06/0.3139, allocations: 0 / 373.8 MB, free: 21.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002683/0.3166, allocations: 1.39 MB / 375.2 MB, free: 21.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.3167, allocations: 86.66 kB / 375.2 MB, free: 21.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009474/0.3176, allocations: 0.7602 MB / 376 MB, free: 21.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.3177, allocations: 34.14 kB / 376 MB, free: 21.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003152/0.318, allocations: 0.561 MB / 376.6 MB, free: 20.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.982e-05/0.3181, allocations: 154.9 kB / 376.7 MB, free: 20.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.3181, allocations: 14.75 kB / 376.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.364e-05/0.3182, allocations: 337.7 kB / 377.1 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.3185, allocations: 164.6 kB / 377.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.3189, allocations: 459.4 kB / 377.7 MB, free: 19.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.3194, allocations: 236.9 kB / 377.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.3194, allocations: 5.281 kB / 377.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001172/0.3205, allocations: 0.7499 MB / 378.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.3206, allocations: 9.625 kB / 378.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.3206, allocations: 10.33 kB / 378.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002304/0.3208, allocations: 76.81 kB / 378.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004956/0.3213, allocations: 157.7 kB / 378.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.323, allocations: 2.805 MB / 381.7 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005053/0.3235, allocations: 36.92 kB / 381.8 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-05/0.3236, allocations: 37 kB / 381.8 MB, free: 16.41 MB / 302.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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003748/0.324, allocations: 252.5 kB / 382.1 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3241, allocations: 91.16 kB / 382.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008399/0.3249, allocations: 477.2 kB / 382.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3249, allocations: 7.812 kB / 382.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.207e-06/0.3249, allocations: 1.688 kB / 382.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3249, allocations: 1.547 kB / 382.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002217/0.3272, allocations: 1.386 MB / 384 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3272, allocations: 4.219 kB / 384 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/0.3275, allocations: 75.16 kB / 384.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001826/0.3277, allocations: 57.22 kB / 384.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.3277, allocations: 13.88 kB / 384.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001704/0.3294, allocations: 2.794 MB / 387 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.3294, allocations: 3.047 kB / 387 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.3306, allocations: 0.8441 MB / 387.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002238/0.3309, allocations: 191.7 kB / 388 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.891e-05/0.3309, allocations: 9.328 kB / 388 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003699/0.3313, allocations: 35.14 kB / 388 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.3314, allocations: 34.12 kB / 388.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.817e-05/0.3314, allocations: 16.92 kB / 388.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007161/0.3322, allocations: 0.5105 MB / 388.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3322, allocations: 0 / 388.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001191/0.3334, allocations: 200.4 kB / 388.8 MB, free: 11.32 MB / 302.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002964/0.3337, allocations: 125.2 kB / 388.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.3353, allocations: 0.6803 MB / 389.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.3353, allocations: 5.312 kB / 389.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007827/0.3361, allocations: 430.7 kB / 390 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.3375, allocations: 208.7 kB / 390.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/0.3408, allocations: 2.097 MB / 392.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006335/0.3415, allocations: 1.023 MB / 393.3 MB, free: 8.426 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005206/0.342, allocations: 108.7 kB / 393.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.3421, allocations: 54.67 kB / 393.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of SimCode: time 3.686e-06/0.3421, allocations: 0 / 393.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of Templates: time 0.01823/0.3604, allocations: 8.977 MB / 402.5 MB, free: 4.156 MB / 302.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","../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