Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.001821/0.001821, allocations: 112.3 kB / 21.18 MB, free: 0.625 MB / 14.72 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.002311/0.002311, allocations: 215 kB / 24.48 MB, free: 4.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 230.4 MB / 258.1 MB, free: 8.145 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|loadInertia.phi|loadInertia.w|dcpm.la.i|armatureInverter.vDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vMotFilter.y|armatureInverter.iDCFilter.y|currentController.integrator.y|speedController.integrator.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|loadInertia.phi|loadInertia.w|dcpm.la.i|armatureInverter.vDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vMotFilter.y|armatureInverter.iDCFilter.y|currentController.integrator.y|speedController.integrator.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 67.83 kB / 378.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2117, allocations: 53.32 MB / 432.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01821/0.2299, allocations: 15.42 MB / 447.5 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.2401, allocations: 5.754 MB / 453.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002133/0.2422, allocations: 75.62 kB / 453.3 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002753/0.245, allocations: 1.002 MB / 454.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001844/0.2468, allocations: 0.655 MB / 455 MB, free: 400 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.2483, allocations: 0.7527 MB / 455.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003218/0.2515, allocations: 2.703 MB / 458.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001335/0.2528, allocations: 0.8541 MB / 459.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001461/0.2543, allocations: 1.062 MB / 460.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001284/0.2556, allocations: 1.058 MB / 461.4 MB, free: 9.891 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000312/0.2559, allocations: 260 kB / 461.7 MB, free: 9.637 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.2562, allocations: 256 kB / 461.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004675/0.2567, allocations: 0.5216 MB / 462.4 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.2577, allocations: 1.143 MB / 463.6 MB, free: 7.715 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003276/0.261, allocations: 3.109 MB / 466.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.261, allocations: 0 / 466.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.261, allocations: 0 / 466.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.747e-05/0.2611, allocations: 0 / 466.7 MB, free: 4.594 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.004452/0.2655, allocations: 2.483 MB / 469.2 MB, free: 2.051 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.2656, allocations: 12.03 kB / 469.2 MB, free: 2.039 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003745/0.2659, allocations: 271.3 kB / 469.4 MB, free: 1.773 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.268, allocations: 1.238 MB / 470.7 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003049/0.2683, allocations: 257.3 kB / 470.9 MB, free: 216 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.2686, allocations: 192.1 kB / 471.1 MB, free: 24 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003587/0.2722, allocations: 1.914 MB / 473 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.585e-05/0.2722, allocations: 0 / 473 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/0.2724, allocations: 80 kB / 473.1 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-05/0.2724, allocations: 44 kB / 473.2 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003642/0.2761, allocations: 1.555 MB / 474.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0101/0.2862, allocations: 7.085 MB / 481.8 MB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002826/0.289, allocations: 1.172 MB / 483 MB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.2901, allocations: 424.2 kB / 483.4 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.686e-05/0.2901, allocations: 13 kB / 483.4 MB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/0.2902, allocations: 43.56 kB / 483.4 MB, free: 3.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=83): time 2.825e-06/0.2902, allocations: 3.938 kB / 483.4 MB, free: 3.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=110): time 0.03356/0.3238, allocations: 7.891 MB / 491.3 MB, free: 11.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.3238, allocations: 64.41 kB / 491.4 MB, free: 11.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.3256, allocations: 1.22 MB / 492.6 MB, free: 9.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.3257, allocations: 45.7 kB / 492.7 MB, free: 9.859 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008482/0.3265, allocations: 1.016 MB / 493.7 MB, free: 8.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003699/0.3269, allocations: 408.5 kB / 494.1 MB, free: 8.434 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004721/0.3274, allocations: 271.5 kB / 494.3 MB, free: 8.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3275, allocations: 305.1 kB / 494.6 MB, free: 7.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002052/0.3296, allocations: 0.7309 MB / 495.4 MB, free: 7.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002438/0.332, allocations: 1.191 MB / 496.6 MB, free: 5.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004199/0.3362, allocations: 1.797 MB / 498.4 MB, free: 3.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.3362, allocations: 4 kB / 498.4 MB, free: 3.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005221/0.3414, allocations: 2.15 MB / 0.4888 GB, free: 1.547 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3414, allocations: 12 kB / 0.4888 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.3415, allocations: 12 kB / 0.4888 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001486/0.3416, allocations: 40.86 kB / 0.4888 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001887/0.3435, allocations: 423.4 kB / 0.4892 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.3446, allocations: 1.375 MB / 0.4906 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.3461, allocations: 131.9 kB / 0.4907 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.3462, allocations: 64 kB / 0.4908 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002409/0.3486, allocations: 0.9802 MB / 0.4917 GB, free: 14.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002194/0.3508, allocations: 1.154 MB / 0.4929 GB, free: 13.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003774/0.3545, allocations: 1.732 MB / 0.4946 GB, free: 11.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.975e-06/0.3546, allocations: 7.938 kB / 0.4946 GB, free: 11.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004742/0.3593, allocations: 2.06 MB / 0.4966 GB, free: 8.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3593, allocations: 15.94 kB / 0.4966 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.3593, allocations: 16 kB / 0.4966 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001037/0.3594, allocations: 48.83 kB / 0.4966 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.3612, allocations: 399.8 kB / 0.497 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.3623, allocations: 1.376 MB / 0.4984 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.3636, allocations: 123.8 kB / 0.4985 GB, free: 6.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.3637, allocations: 67.94 kB / 0.4986 GB, free: 6.805 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.noWphase,kinematicPTP.moving[1],speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * 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.0003709/0.3641, allocations: 279.9 kB / 0.4988 GB, free: 6.523 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002482/0.3644, allocations: 162.9 kB / 0.499 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004222/0.3686, allocations: 1.57 MB / 0.5005 GB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.3686, allocations: 7.922 kB / 0.5005 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3686, allocations: 4 kB / 0.5005 GB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006061/0.3692, allocations: 323.9 kB / 0.5008 GB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.3694, allocations: 24 kB / 0.5009 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.3705, allocations: 111.9 kB / 0.501 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.3708, allocations: 104.8 kB / 0.5011 GB, free: 4.168 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005035/0.3758, allocations: 1.576 MB / 0.5026 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005962/0.3818, allocations: 2.405 MB / 0.5049 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001787/0.3836, allocations: 0.6284 MB / 0.5056 GB, free: 15.53 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00121/0.3848, allocations: 0.7942 MB / 0.5063 GB, free: 14.73 MB / 430.1 MB Notification: Performance of Backend: time 1.7e-07/0.3848, allocations: 0 / 0.5063 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005755/0.3905, allocations: 2.253 MB / 0.5085 GB, free: 12.46 MB / 430.1 MB Notification: Performance of SimCode: time 0.005854/0.3964, allocations: 3.686 MB / 0.5121 GB, free: 8.727 MB / 430.1 MB Notification: Performance of Templates: time 0.2209/0.6173, allocations: 28.94 MB / 0.5404 GB, free: 103.7 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.674107083119452]