Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 200.2 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.147/1.147, allocations: 225.5 MB / 234.4 MB, free: 14.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009647/0.0009646, allocations: 95.44 kB / 286.3 MB, free: 12.65 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.042e-05/1.044e-05, allocations: 0 / 343.1 MB, free: 3.832 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.1912, allocations: 51.46 MB / 394.6 MB, free: 33.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2523/0.4434, allocations: 119 MB / 0.5016 GB, free: 102.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.4437, allocations: 86.11 kB / 0.5017 GB, free: 102.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1043/0.548, allocations: 46.13 MB / 0.5467 GB, free: 61.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001323/0.5482, allocations: 48 kB / 0.5468 GB, free: 61.66 MB / 378.7 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.003641/0.5519, allocations: 1.96 MB / 0.5487 GB, free: 59.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.5519, allocations: 12.03 kB / 0.5487 GB, free: 59.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009502/0.5529, allocations: 305 kB / 0.549 GB, free: 59.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.5551, allocations: 1.252 MB / 0.5502 GB, free: 58.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002115/0.5554, allocations: 196.8 kB / 0.5504 GB, free: 57.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002546/0.5556, allocations: 119.9 kB / 0.5505 GB, free: 57.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002242/0.5579, allocations: 1.253 MB / 0.5517 GB, free: 56.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.5602, allocations: 1.484 MB / 0.5532 GB, free: 54.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.252e-05/0.5603, allocations: 19.83 kB / 0.5532 GB, free: 54.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.5604, allocations: 0 / 0.5532 GB, free: 54.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.802e-05/0.5604, allocations: 44 kB / 0.5533 GB, free: 54.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00823/0.5687, allocations: 7.036 MB / 0.5601 GB, free: 47.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.5699, allocations: 0.5707 MB / 0.5607 GB, free: 46.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005351/0.5705, allocations: 382 kB / 0.561 GB, free: 46.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.351e-05/0.5705, allocations: 8.781 kB / 0.5611 GB, free: 46.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.742e-05/0.5705, allocations: 43.34 kB / 0.5611 GB, free: 46.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.224e-06/0.5706, allocations: 0 / 0.5611 GB, free: 46.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.008936/0.5795, allocations: 4.412 MB / 0.5654 GB, free: 42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.5795, allocations: 94.11 kB / 0.5655 GB, free: 41.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.5808, allocations: 0.9924 MB / 0.5665 GB, free: 40.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.657e-05/0.5808, allocations: 29.69 kB / 0.5665 GB, free: 40.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000256/0.5811, allocations: 0.7744 MB / 0.5672 GB, free: 40.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.5813, allocations: 374.4 kB / 0.5676 GB, free: 39.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.856e-05/0.5814, allocations: 0 / 0.5676 GB, free: 39.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.82e-05/0.5815, allocations: 365.8 kB / 0.568 GB, free: 39.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007318/0.5822, allocations: 0.5156 MB / 0.5685 GB, free: 38.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008613/0.5831, allocations: 0.9496 MB / 0.5694 GB, free: 37.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008092/0.5839, allocations: 0.5528 MB / 0.5699 GB, free: 37.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.5839, allocations: 4 kB / 0.5699 GB, free: 37.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002118/0.586, allocations: 1.529 MB / 0.5714 GB, free: 35.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007414/0.5868, allocations: 5.354 MB / 0.5766 GB, free: 29.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.5868, allocations: 12 kB / 0.5767 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000136/0.587, allocations: 40.86 kB / 0.5767 GB, free: 29.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/0.5888, allocations: 455.3 kB / 0.5771 GB, free: 29.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006587/0.5894, allocations: 1.248 MB / 0.5784 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/0.5909, allocations: 159.8 kB / 0.5785 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.591, allocations: 64 kB / 0.5786 GB, free: 27.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.2e-06/0.591, allocations: 4 kB / 0.5786 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001861/0.5929, allocations: 1.326 MB / 0.5799 GB, free: 26.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.5929, allocations: 16 kB / 0.5799 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.211e-05/0.593, allocations: 40.86 kB / 0.5799 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.5947, allocations: 419.4 kB / 0.5803 GB, free: 25.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005556/0.5952, allocations: 1.25 MB / 0.5815 GB, free: 24.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.5966, allocations: 116 kB / 0.5817 GB, free: 24.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.5967, allocations: 67.98 kB / 0.5817 GB, free: 24.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 193 * 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.0002201/0.5969, allocations: 149.9 kB / 0.5819 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001917/0.5971, allocations: 146.2 kB / 0.582 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.5987, allocations: 1.07 MB / 0.583 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.5987, allocations: 15.98 kB / 0.5831 GB, free: 23.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.5987, allocations: 0 / 0.5831 GB, free: 23.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.5988, allocations: 3.984 kB / 0.5831 GB, free: 23.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004807/0.6036, allocations: 3.227 MB / 0.5862 GB, free: 19.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.6036, allocations: 8 kB / 0.5862 GB, free: 19.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.6048, allocations: 304.2 kB / 0.5865 GB, free: 19.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.679e-05/0.6049, allocations: 36.84 kB / 0.5865 GB, free: 19.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.05e-05/0.605, allocations: 20 kB / 0.5866 GB, free: 19.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000576/0.6055, allocations: 1.236 MB / 0.5878 GB, free: 17.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.6056, allocations: 15.94 kB / 0.5878 GB, free: 17.88 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001979/0.6076, allocations: 2.248 MB / 0.59 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004324/0.608, allocations: 331 kB / 0.5903 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002208/0.6082, allocations: 19.98 kB / 0.5903 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.6093, allocations: 143.9 kB / 0.5905 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.6095, allocations: 124.2 kB / 0.5906 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.03e-05/0.6096, allocations: 43.98 kB / 0.5906 GB, free: 14.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008937/0.6105, allocations: 0.7249 MB / 0.5913 GB, free: 13.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001878/0.6124, allocations: 0.5625 MB / 0.5919 GB, free: 13.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.phi,loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.0004667/0.6129, allocations: 387.6 kB / 0.5922 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002855/0.6157, allocations: 2.247 MB / 0.5944 GB, free: 10.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.6158, allocations: 4 kB / 0.5944 GB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007419/0.6165, allocations: 0.537 MB / 0.595 GB, free: 10 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.6178, allocations: 295.5 kB / 0.5952 GB, free: 9.727 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004886/0.6227, allocations: 2.712 MB / 0.5979 GB, free: 6.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/0.6239, allocations: 1.498 MB / 0.5994 GB, free: 5.301 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6239, allocations: 0 / 0.5994 GB, free: 5.301 MB / 378.7 MB Notification: Performance of Templates: time 0.04235/0.6663, allocations: 26.79 MB / 0.6255 GB, free: 10.66 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches