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.001265/0.001265, allocations: 99.3 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001685/0.001685, allocations: 199.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002405/0.0002405, allocations: 4 kB / 306.6 MB, free: 1.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1236, allocations: 51.5 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008003/0.1316, allocations: 6.49 MB / 364.6 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005024/0.1367, allocations: 2.547 MB / 367.1 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007825/0.1375, allocations: 23.94 kB / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.1389, allocations: 473.7 kB / 367.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.14, allocations: 490.5 kB / 368.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004485/0.1405, allocations: 155.8 kB / 368.2 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.142, allocations: 1.03 MB / 369.3 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006154/0.1426, allocations: 427.2 kB / 369.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005248/0.1431, allocations: 434.2 kB / 370.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005411/0.1437, allocations: 473.8 kB / 370.6 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.515e-05/0.1438, allocations: 64 kB / 370.6 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002676/0.1441, allocations: 99.97 kB / 370.7 MB, free: 1.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.1442, allocations: 179.2 kB / 370.9 MB, free: 1.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000214/0.1444, allocations: 257.1 kB / 371.1 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2019/0.3464, allocations: 1.304 MB / 372.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3464, allocations: 0.7812 kB / 372.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3464, allocations: 0 / 372.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.373e-05/0.3465, allocations: 0 / 372.5 MB, free: 10.86 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.002628/0.3491, allocations: 1.256 MB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.3492, allocations: 8.969 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005861/0.3498, allocations: 171.7 kB / 373.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.351, allocations: 0.6991 MB / 374.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.106e-05/0.3511, allocations: 75.98 kB / 374.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.3513, allocations: 103 kB / 374.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.3532, allocations: 0.9232 MB / 375.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/0.3532, allocations: 2.844 kB / 375.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.101e-05/0.3533, allocations: 42.44 kB / 375.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.094e-05/0.3534, allocations: 27.53 kB / 375.8 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.3547, allocations: 0.6355 MB / 376.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005403/0.3601, allocations: 3.891 MB / 380.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006211/0.3608, allocations: 439 kB / 380.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.3608, allocations: 8.328 kB / 380.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.3608, allocations: 37.64 kB / 380.8 MB, free: 7.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.825e-06/0.3608, allocations: 5.297 kB / 380.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002641/0.3635, allocations: 1.378 MB / 382.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.3635, allocations: 86.39 kB / 382.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009689/0.3645, allocations: 0.7693 MB / 383 MB, free: 6.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.3645, allocations: 32.89 kB / 383 MB, free: 6.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003153/0.3649, allocations: 0.5661 MB / 383.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.784e-05/0.365, allocations: 157.1 kB / 383.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-05/0.365, allocations: 12.41 kB / 383.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.007e-05/0.3651, allocations: 334.7 kB / 384.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003076/0.3654, allocations: 162.5 kB / 384.2 MB, free: 6.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004356/0.3658, allocations: 457.7 kB / 384.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.3662, allocations: 237.5 kB / 384.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.3662, allocations: 6.938 kB / 384.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001267/0.3675, allocations: 0.7446 MB / 385.7 MB, free: 5.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.3675, allocations: 12.81 kB / 385.7 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.3676, allocations: 9.781 kB / 385.7 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002396/0.3678, allocations: 71.5 kB / 385.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005267/0.3684, allocations: 155.6 kB / 385.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001725/0.3701, allocations: 2.802 MB / 388.7 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006111/0.3707, allocations: 43.12 kB / 388.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.961e-05/0.3708, allocations: 35.03 kB / 388.8 MB, free: 3.082 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.0004304/0.3712, allocations: 266.8 kB / 389.1 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.3713, allocations: 89.36 kB / 389.1 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008701/0.3722, allocations: 474.8 kB / 389.6 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3722, allocations: 4.531 kB / 389.6 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3722, allocations: 5.078 kB / 389.6 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.495e-06/0.3722, allocations: 2.578 kB / 389.6 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.3743, allocations: 1.378 MB / 391 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3744, allocations: 2.531 kB / 391 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003306/0.3747, allocations: 70.66 kB / 391.1 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001663/0.3749, allocations: 64.44 kB / 391.1 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.652e-05/0.3749, allocations: 15.89 kB / 391.1 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.3765, allocations: 2.8 MB / 393.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3766, allocations: 1.375 kB / 393.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.3781, allocations: 0.8342 MB / 394.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004443/0.3786, allocations: 188.5 kB / 395 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.3787, allocations: 16.95 kB / 395 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/0.3791, allocations: 28.55 kB / 395 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.3792, allocations: 31.52 kB / 395 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.3793, allocations: 14.28 kB / 395 MB, free: 14.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000994/0.3803, allocations: 0.5146 MB / 395.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3803, allocations: 0 / 395.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001206/0.3815, allocations: 200.8 kB / 395.8 MB, free: 14.71 MB / 318.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.0002915/0.3818, allocations: 130.3 kB / 395.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.3832, allocations: 0.6859 MB / 396.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3832, allocations: 3.156 kB / 396.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006557/0.3838, allocations: 443.7 kB / 397 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009195/0.3848, allocations: 209.1 kB / 397.2 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.3879, allocations: 2.093 MB / 399.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.3886, allocations: 1.028 MB / 400.3 MB, free: 11.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004127/0.389, allocations: 102.5 kB / 400.4 MB, free: 11.76 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.3892, allocations: 57.73 kB / 400.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3892, allocations: 0 / 400.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of Templates: time 0.01695/0.4061, allocations: 8.992 MB / 409.5 MB, free: 6.02 MB / 318.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/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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches