Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001147/0.001147, allocations: 98.83 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 206.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002428, allocations: 8 kB / 306.6 MB, free: 1.406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1199, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00743/0.1273, allocations: 6.636 MB / 364.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004957/0.1323, allocations: 2.593 MB / 367.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009396/0.1333, allocations: 31.81 kB / 367.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001332/0.1347, allocations: 441.8 kB / 367.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.1358, allocations: 466.6 kB / 368.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006719/0.1365, allocations: 247.7 kB / 368.5 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001491/0.138, allocations: 1.049 MB / 369.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006295/0.1387, allocations: 448.4 kB / 370 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004846/0.1392, allocations: 426.2 kB / 370.4 MB, free: 1.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005279/0.1397, allocations: 477.6 kB / 370.8 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.378e-05/0.1398, allocations: 60 kB / 370.9 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002803/0.1401, allocations: 91.92 kB / 371 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.1402, allocations: 183.2 kB / 371.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002272/0.1405, allocations: 261 kB / 371.4 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2204/0.3609, allocations: 1.274 MB / 372.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3609, allocations: 0 / 372.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.361, allocations: 2.062 kB / 372.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.779e-05/0.361, allocations: 0 / 372.7 MB, free: 10.91 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002549/0.3636, allocations: 1.292 MB / 374 MB, free: 10.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3636, allocations: 8.438 kB / 374 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005784/0.3642, allocations: 176 kB / 374.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.3655, allocations: 0.7466 MB / 374.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.534e-05/0.3656, allocations: 71.69 kB / 375 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.3657, allocations: 104.8 kB / 375.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001946/0.3677, allocations: 0.9527 MB / 376 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.528e-05/0.3677, allocations: 5.75 kB / 376 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.401e-05/0.3678, allocations: 39.06 kB / 376.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.694e-05/0.3679, allocations: 24.94 kB / 376.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.3692, allocations: 0.6426 MB / 376.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005292/0.3745, allocations: 4.076 MB / 380.8 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.3756, allocations: 461.5 kB / 381.3 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.454e-05/0.3757, allocations: 8.969 kB / 381.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.3757, allocations: 44.23 kB / 381.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.835e-06/0.3757, allocations: 0 / 381.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002479/0.3782, allocations: 1.345 MB / 382.7 MB, free: 7.008 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.3783, allocations: 133.5 kB / 382.8 MB, free: 6.852 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.3793, allocations: 0.837 MB / 383.6 MB, free: 6.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.3793, allocations: 37.3 kB / 383.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003296/0.3797, allocations: 0.5885 MB / 384.3 MB, free: 6.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.205e-05/0.3798, allocations: 143.1 kB / 384.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.304e-05/0.3798, allocations: 17 kB / 384.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.121e-05/0.3799, allocations: 335 kB / 384.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003045/0.3802, allocations: 168.2 kB / 384.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.3806, allocations: 0.4897 MB / 385.4 MB, free: 5.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/0.3811, allocations: 249.7 kB / 385.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3811, allocations: 6.312 kB / 385.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00117/0.3822, allocations: 0.7395 MB / 386.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000652/0.3829, allocations: 4.098 MB / 390.5 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.3829, allocations: 14.86 kB / 390.5 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.3831, allocations: 34.67 kB / 390.5 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/0.3837, allocations: 175.5 kB / 390.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008019/0.3845, allocations: 1.293 MB / 392 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/0.3852, allocations: 36.05 kB / 392 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.294e-05/0.3852, allocations: 41.27 kB / 392.1 MB, free: 15.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/0.3852, allocations: 3.219 kB / 392.1 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000953/0.3862, allocations: 0.6069 MB / 392.7 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.3862, allocations: 9.656 kB / 392.7 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001012/0.3863, allocations: 44.58 kB / 392.7 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.3869, allocations: 165.9 kB / 392.9 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000906/0.3878, allocations: 1.302 MB / 394.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005474/0.3883, allocations: 32.5 kB / 394.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.566e-05/0.3884, allocations: 36.5 kB / 394.3 MB, free: 14.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005885/0.389, allocations: 341.9 kB / 394.6 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.3891, allocations: 95.94 kB / 394.7 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008131/0.3899, allocations: 447.7 kB / 395.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.39, allocations: 3.719 kB / 395.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.39, allocations: 1.312 kB / 395.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.39, allocations: 1.828 kB / 395.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.3921, allocations: 1.361 MB / 396.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.3921, allocations: 2.688 kB / 396.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000358/0.3925, allocations: 79.97 kB / 396.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.848e-05/0.3926, allocations: 25.84 kB / 396.6 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.3926, allocations: 12.34 kB / 396.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000963/0.3936, allocations: 1.277 MB / 397.9 MB, free: 12.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3936, allocations: 2.969 kB / 397.9 MB, free: 12.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.3947, allocations: 0.8088 MB / 398.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.3951, allocations: 198.6 kB / 398.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.3952, allocations: 14.5 kB / 398.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003755/0.3956, allocations: 28.09 kB / 398.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.631e-05/0.3956, allocations: 30.25 kB / 399 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.3957, allocations: 9.406 kB / 399 MB, free: 11.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008004/0.3965, allocations: 0.5596 MB / 399.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3965, allocations: 0 / 399.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001396/0.3979, allocations: 344.4 kB / 399.9 MB, free: 11.45 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002344/0.3981, allocations: 125 kB / 400 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.3999, allocations: 0.9711 MB / 401 MB, free: 10.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3999, allocations: 4.188 kB / 401 MB, free: 10.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003994/0.4003, allocations: 299.7 kB / 401.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.4014, allocations: 215.7 kB / 401.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.4049, allocations: 2.216 MB / 403.7 MB, free: 9.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007956/0.4057, allocations: 1.042 MB / 404.7 MB, free: 8.344 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006309/0.4063, allocations: 130.6 kB / 404.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.4065, allocations: 56.31 kB / 404.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4065, allocations: 0 / 404.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of Templates: time 0.02068/0.4272, allocations: 9.234 MB / 414.2 MB, free: 1.363 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches