Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009628/0.0009629, allocations: 199.3 kB / 18.07 MB, free: 3.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.5 MB / 245.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007267/0.0007267, allocations: 95.86 kB / 297.4 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002269/0.000227, allocations: 4 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.1913, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1025/0.2939, allocations: 100.2 MB / 0.4969 GB, free: 7.438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.2941, allocations: 91.94 kB / 0.497 GB, free: 7.348 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2184/0.5125, allocations: 27.47 MB / 0.5238 GB, free: 88.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5126, allocations: 4 kB / 0.5238 GB, free: 88.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.993e-05/0.5126, allocations: 24 kB / 0.5238 GB, free: 88.71 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002109/0.5148, allocations: 1.3 MB / 0.5251 GB, free: 87.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.5148, allocations: 12.03 kB / 0.5251 GB, free: 87.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006194/0.5154, allocations: 183.2 kB / 0.5253 GB, free: 87.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.5169, allocations: 0.8753 MB / 0.5262 GB, free: 86.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.5169, allocations: 74.94 kB / 0.5262 GB, free: 86.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.5171, allocations: 96 kB / 0.5263 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.5184, allocations: 0.9418 MB / 0.5272 GB, free: 85.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.882e-05/0.5185, allocations: 23.83 kB / 0.5273 GB, free: 85.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.884e-05/0.5186, allocations: 39.94 kB / 0.5273 GB, free: 85.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.5186, allocations: 24 kB / 0.5273 GB, free: 85.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.5196, allocations: 0.6207 MB / 0.5279 GB, free: 84.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.5239, allocations: 4.172 MB / 0.532 GB, free: 80.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007862/0.5247, allocations: 377.5 kB / 0.5324 GB, free: 79.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.525, allocations: 156.8 kB / 0.5325 GB, free: 79.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.525, allocations: 4 kB / 0.5325 GB, free: 79.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.5251, allocations: 34.55 kB / 0.5325 GB, free: 79.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.344e-06/0.5251, allocations: 0 / 0.5325 GB, free: 79.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001963/0.527, allocations: 1.295 MB / 0.5338 GB, free: 78.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.5271, allocations: 89.05 kB / 0.5339 GB, free: 77.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008705/0.5279, allocations: 0.8468 MB / 0.5347 GB, free: 77.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.528, allocations: 37.64 kB / 0.5348 GB, free: 77.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002439/0.5282, allocations: 0.5953 MB / 0.5353 GB, free: 76.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.181e-05/0.5283, allocations: 149.7 kB / 0.5355 GB, free: 76.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.5283, allocations: 16 kB / 0.5355 GB, free: 76.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.982e-05/0.5284, allocations: 335 kB / 0.5358 GB, free: 75.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.5287, allocations: 161.9 kB / 0.536 GB, free: 75.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.529, allocations: 476.8 kB / 0.5364 GB, free: 75.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006773/0.5297, allocations: 0.6754 MB / 0.5371 GB, free: 74.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.5297, allocations: 4 kB / 0.5371 GB, free: 74.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001028/0.5308, allocations: 0.7396 MB / 0.5378 GB, free: 73.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.5309, allocations: 408.1 kB / 0.5382 GB, free: 73.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.5309, allocations: 12 kB / 0.5382 GB, free: 73.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001272/0.5311, allocations: 32.86 kB / 0.5382 GB, free: 73.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.5316, allocations: 167.7 kB / 0.5384 GB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006172/0.5322, allocations: 1.292 MB / 0.5397 GB, free: 71.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004961/0.5327, allocations: 40.05 kB / 0.5397 GB, free: 71.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.5328, allocations: 36 kB / 0.5397 GB, free: 71.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.921e-06/0.5328, allocations: 4 kB / 0.5397 GB, free: 71.38 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000813/0.5336, allocations: 0.6215 MB / 0.5404 GB, free: 70.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.5336, allocations: 12 kB / 0.5404 GB, free: 70.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.421e-05/0.5337, allocations: 24.86 kB / 0.5404 GB, free: 70.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000493/0.5342, allocations: 172.2 kB / 0.5406 GB, free: 70.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005472/0.5348, allocations: 1.288 MB / 0.5418 GB, free: 69.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004442/0.5352, allocations: 32.16 kB / 0.5418 GB, free: 69.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-05/0.5353, allocations: 35.98 kB / 0.5419 GB, free: 69.06 MB / 378.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 (91): * Single equations (assignments): 90 * 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.0003638/0.5356, allocations: 344.8 kB / 0.5422 GB, free: 68.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.5357, allocations: 90.78 kB / 0.5423 GB, free: 68.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006894/0.5364, allocations: 431.4 kB / 0.5427 GB, free: 68.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.5364, allocations: 4 kB / 0.5427 GB, free: 68.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.5365, allocations: 7.938 kB / 0.5427 GB, free: 68.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.5365, allocations: 0 / 0.5427 GB, free: 68.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001608/0.5381, allocations: 1.326 MB / 0.544 GB, free: 66.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.5381, allocations: 4 kB / 0.544 GB, free: 66.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003322/0.5384, allocations: 80.11 kB / 0.5441 GB, free: 66.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.116e-05/0.5385, allocations: 20.84 kB / 0.5441 GB, free: 66.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.5386, allocations: 16 kB / 0.5441 GB, free: 66.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000534/0.5391, allocations: 1.272 MB / 0.5454 GB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5391, allocations: 4.031 kB / 0.5454 GB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008243/0.5399, allocations: 0.6893 MB / 0.546 GB, free: 64.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.5402, allocations: 203.9 kB / 0.5462 GB, free: 64.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.194e-05/0.5403, allocations: 12 kB / 0.5462 GB, free: 64.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003588/0.5406, allocations: 19.98 kB / 0.5463 GB, free: 64.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.331e-05/0.5407, allocations: 31.84 kB / 0.5463 GB, free: 64.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.5407, allocations: 20.06 kB / 0.5463 GB, free: 64.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000609/0.5413, allocations: 0.5741 MB / 0.5469 GB, free: 63.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5413, allocations: 0 / 0.5469 GB, free: 63.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001128/0.5425, allocations: 387.9 kB / 0.5472 GB, free: 63.25 MB / 378.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 (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.0003426/0.5428, allocations: 297.1 kB / 0.5475 GB, free: 62.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.5441, allocations: 0.9662 MB / 0.5485 GB, free: 61.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5441, allocations: 0 / 0.5485 GB, free: 61.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003298/0.5444, allocations: 286.6 kB / 0.5487 GB, free: 61.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.5457, allocations: 227.7 kB / 0.549 GB, free: 61.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.5481, allocations: 2.239 MB / 0.5512 GB, free: 59.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.5485, allocations: 1.021 MB / 0.5521 GB, free: 58.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.5487, allocations: 67.42 kB / 0.5522 GB, free: 58.06 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5487, allocations: 4 kB / 0.5522 GB, free: 58.06 MB / 378.7 MB Notification: Performance of Templates: time 0.01687/0.5656, allocations: 17.45 MB / 0.5693 GB, free: 40.64 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches