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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00087/0.00087, allocations: 88.28 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.005002/0.005002, allocations: 160.1 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8834/0.8834, allocations: 177 MB / 204.9 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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=20000,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=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 325.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.713e-05, allocations: 3.266 kB / 325.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.005961/0.005988, allocations: 7.277 MB / 333.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003565/0.009553, allocations: 2.567 MB / 335.6 MB, free: 5.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006695/0.01022, allocations: 35.81 kB / 335.7 MB, free: 5.305 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.01128, allocations: 0.5082 MB / 336.2 MB, free: 4.793 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007445/0.01203, allocations: 484.2 kB / 336.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004894/0.01252, allocations: 366.8 kB / 337 MB, free: 3.961 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001035/0.01355, allocations: 1.572 MB / 338.6 MB, free: 2.375 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004648/0.01402, allocations: 388 kB / 339 MB, free: 1.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007297/0.01475, allocations: 0.8573 MB / 339.8 MB, free: 1.121 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.0151, allocations: 446.5 kB / 340.2 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.77e-05/0.0152, allocations: 143.9 kB / 340.4 MB, free: 0.543 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.01539, allocations: 172 kB / 340.6 MB, free: 384 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.01552, allocations: 290.9 kB / 340.8 MB, free: 92 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002732/0.01579, allocations: 455 kB / 341.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.01699, allocations: 1.721 MB / 343 MB, free: 13.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.01699, allocations: 4 kB / 343 MB, free: 13.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.01699, allocations: 3.938 kB / 343 MB, free: 13.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.017, allocations: 0 / 343 MB, free: 13.91 MB / 314.7 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.001957/0.01896, allocations: 1.454 MB / 344.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.019, allocations: 11.98 kB / 344.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003541/0.01936, allocations: 196 kB / 344.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008907/0.02025, allocations: 0.7322 MB / 345.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.02029, allocations: 74.36 kB / 345.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.082e-05/0.02038, allocations: 108.3 kB / 345.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.02139, allocations: 1.063 MB / 346.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/0.02142, allocations: 4 kB / 346.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-05/0.02147, allocations: 40 kB / 346.7 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.02148, allocations: 24 kB / 346.7 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007386/0.02222, allocations: 0.6363 MB / 347.3 MB, free: 9.441 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003179/0.0254, allocations: 3.547 MB / 350.9 MB, free: 5.688 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006236/0.02602, allocations: 403.2 kB / 351.3 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.0262, allocations: 157.2 kB / 351.4 MB, free: 5.129 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.02623, allocations: 4 kB / 351.4 MB, free: 5.125 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.02625, allocations: 38.56 kB / 351.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/0.02625, allocations: 0 / 351.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.001611/0.02786, allocations: 1.189 MB / 352.7 MB, free: 3.855 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.057e-05/0.02792, allocations: 132.5 kB / 352.8 MB, free: 3.695 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007196/0.02864, allocations: 0.8407 MB / 353.6 MB, free: 2.844 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.02867, allocations: 29.7 kB / 353.7 MB, free: 2.809 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002693/0.02894, allocations: 0.6086 MB / 354.3 MB, free: 2.191 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.545e-05/0.02901, allocations: 154.7 kB / 354.4 MB, free: 2.039 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.02913, allocations: 134.6 kB / 354.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.341e-05/0.02922, allocations: 337.9 kB / 354.9 MB, free: 1.562 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.02942, allocations: 176.8 kB / 355.1 MB, free: 1.387 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003694/0.02979, allocations: 0.5662 MB / 355.6 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005609/0.03035, allocations: 0.6792 MB / 356.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.03036, allocations: 4 kB / 356.3 MB, free: 15.81 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007528/0.03111, allocations: 0.7358 MB / 357.1 MB, free: 15.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.03113, allocations: 12 kB / 357.1 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.03114, allocations: 8 kB / 357.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001258/0.03127, allocations: 40.78 kB / 357.1 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003141/0.03158, allocations: 171.7 kB / 357.3 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007105/0.03229, allocations: 1.268 MB / 358.5 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003031/0.0326, allocations: 43.94 kB / 358.6 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.03262, allocations: 32 kB / 358.6 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003964/0.03302, allocations: 350.1 kB / 359 MB, free: 13.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003197/0.03334, allocations: 0.5468 MB / 359.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005161/0.03386, allocations: 0.6752 MB / 360.2 MB, free: 11.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.567e-06/0.03386, allocations: 4 kB / 360.2 MB, free: 11.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006734/0.03453, allocations: 0.7197 MB / 360.9 MB, free: 10.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.03454, allocations: 8 kB / 360.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.03455, allocations: 12 kB / 360.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.514e-05/0.03461, allocations: 33.58 kB / 361 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.03488, allocations: 171.7 kB / 361.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005661/0.03545, allocations: 1.256 MB / 362.4 MB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002885/0.03574, allocations: 39.94 kB / 362.4 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.03576, allocations: 32 kB / 362.5 MB, free: 9.137 MB / 330.7 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 (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.0001321/0.0359, allocations: 240.2 kB / 362.7 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.867e-05/0.03596, allocations: 87.44 kB / 362.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005164/0.03648, allocations: 434.3 kB / 363.2 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.03648, allocations: 4 kB / 363.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.03649, allocations: 0 / 363.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.03649, allocations: 0 / 363.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.03766, allocations: 1.141 MB / 364.3 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.03767, allocations: 0 / 364.3 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.03785, allocations: 79.89 kB / 364.4 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.554e-05/0.0379, allocations: 24.84 kB / 364.4 MB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.03792, allocations: 8.219 kB / 364.5 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005449/0.03847, allocations: 1.248 MB / 365.7 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.03847, allocations: 3.938 kB / 365.7 MB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006253/0.03909, allocations: 0.7111 MB / 366.4 MB, free: 4.949 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.03926, allocations: 119.4 kB / 366.5 MB, free: 4.832 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.824e-05/0.0393, allocations: 12 kB / 366.5 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.0395, allocations: 23.97 kB / 366.6 MB, free: 4.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.912e-05/0.03955, allocations: 35.83 kB / 366.6 MB, free: 4.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.03956, allocations: 12 kB / 366.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004775/0.04004, allocations: 0.5498 MB / 367.2 MB, free: 4.203 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04004, allocations: 0 / 367.2 MB, free: 4.203 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007398/0.04078, allocations: 347.9 kB / 367.5 MB, free: 3.863 MB / 330.7 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 (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.0001871/0.04096, allocations: 127.1 kB / 367.6 MB, free: 3.727 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009699/0.04193, allocations: 0.9271 MB / 368.6 MB, free: 2.777 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.04194, allocations: 0 / 368.6 MB, free: 2.777 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002236/0.04216, allocations: 286.9 kB / 368.8 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.04278, allocations: 232 kB / 369.1 MB, free: 2.27 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.04471, allocations: 1.741 MB / 370.8 MB, free: 480 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.04498, allocations: 439.3 kB / 371.2 MB, free: 4 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.0451, allocations: 60.55 kB / 371.3 MB, free: 15.94 MB / 346.7 MB Notification: Performance of SimCode: time 8.62e-07/0.0451, allocations: 4 kB / 371.3 MB, free: 15.94 MB / 346.7 MB Notification: Performance of Templates: time 0.01394/0.05904, allocations: 17.06 MB / 388.4 MB, free: 14.91 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (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) [Timeout 480] 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.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.459602262824774]