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.00131/0.00131, allocations: 197.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.6 MB / 244.3 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009652/0.0009654, allocations: 92.03 kB / 296.4 MB, free: 6.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002161, allocations: 8 kB / 356.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2072, allocations: 51.29 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.005173/0.2124, allocations: 7.188 MB / 414.7 MB, free: 20.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003727/0.2161, allocations: 2.555 MB / 417.2 MB, free: 18.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008378/0.217, allocations: 27.94 kB / 417.3 MB, free: 18.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.2182, allocations: 449.4 kB / 417.7 MB, free: 17.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009427/0.2192, allocations: 360.5 kB / 418.1 MB, free: 17.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000618/0.2198, allocations: 247 kB / 418.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001054/0.2208, allocations: 1.331 MB / 419.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005145/0.2214, allocations: 448.4 kB / 420.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004991/0.2219, allocations: 457.9 kB / 420.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003717/0.2223, allocations: 497.5 kB / 421 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.2224, allocations: 60 kB / 421.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002436/0.2226, allocations: 99.97 kB / 421.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.2227, allocations: 191 kB / 421.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.2229, allocations: 253.1 kB / 421.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000787/0.2237, allocations: 1.324 MB / 422.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2237, allocations: 0 / 422.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2237, allocations: 0 / 422.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.2237, allocations: 0 / 422.9 MB, free: 12.32 MB / 298.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.001798/0.2255, allocations: 1.32 MB / 424.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2256, allocations: 16.03 kB / 424.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005311/0.2261, allocations: 190.2 kB / 424.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009488/0.2271, allocations: 0.7426 MB / 425.2 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.633e-05/0.2271, allocations: 74 kB / 425.3 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.2273, allocations: 107.9 kB / 425.4 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.2286, allocations: 0.9497 MB / 426.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/0.2286, allocations: 11.84 kB / 426.3 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.722e-05/0.2287, allocations: 40 kB / 426.4 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.2287, allocations: 24 kB / 426.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009781/0.2297, allocations: 0.6441 MB / 427 MB, free: 8.074 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003973/0.2337, allocations: 4.127 MB / 431.2 MB, free: 3.719 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008671/0.2346, allocations: 461.5 kB / 431.6 MB, free: 3.262 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.2348, allocations: 165.5 kB / 431.8 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.2349, allocations: 8 kB / 431.8 MB, free: 3.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.2349, allocations: 38.56 kB / 431.8 MB, free: 3.043 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.394e-06/0.2349, allocations: 3.938 kB / 431.8 MB, free: 3.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001952/0.2368, allocations: 1.346 MB / 433.2 MB, free: 1.621 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.2369, allocations: 106.8 kB / 433.3 MB, free: 1.492 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008444/0.2377, allocations: 0.8859 MB / 434.2 MB, free: 0.582 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.2378, allocations: 29.7 kB / 434.2 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.2381, allocations: 0.5916 MB / 434.8 MB, free: 15.94 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.812e-05/0.2382, allocations: 145.9 kB / 434.9 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.2382, allocations: 16 kB / 434.9 MB, free: 15.78 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.2383, allocations: 337.9 kB / 435.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.2386, allocations: 165.9 kB / 435.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000494/0.2391, allocations: 0.4899 MB / 435.9 MB, free: 14.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.2395, allocations: 251.4 kB / 436.2 MB, free: 14.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.2396, allocations: 4 kB / 436.2 MB, free: 14.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001112/0.2407, allocations: 0.7471 MB / 436.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000239/0.2409, allocations: 400.4 kB / 437.3 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.2409, allocations: 12 kB / 437.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.2411, allocations: 40.84 kB / 437.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005337/0.2417, allocations: 167.7 kB / 437.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009228/0.2426, allocations: 1.303 MB / 438.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000498/0.2431, allocations: 31.98 kB / 438.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.741e-05/0.2432, allocations: 40 kB / 438.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.861e-06/0.2432, allocations: 4 kB / 438.9 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008772/0.2441, allocations: 0.6064 MB / 439.5 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.2441, allocations: 16.03 kB / 439.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.748e-05/0.2442, allocations: 36.84 kB / 439.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004892/0.2447, allocations: 167.7 kB / 439.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007975/0.2455, allocations: 1.303 MB / 441 MB, free: 9.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004444/0.2459, allocations: 24 kB / 441 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/0.246, allocations: 36 kB / 441.1 MB, free: 9.047 MB / 314.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 (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.0004299/0.2464, allocations: 341 kB / 441.4 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.2465, allocations: 98.83 kB / 441.5 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007588/0.2473, allocations: 439.4 kB / 441.9 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.2473, allocations: 8 kB / 441.9 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2473, allocations: 0 / 441.9 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2474, allocations: 11.92 kB / 442 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.2492, allocations: 1.388 MB / 443.3 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.2492, allocations: 0 / 443.3 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003456/0.2496, allocations: 92.05 kB / 443.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.163e-05/0.2497, allocations: 20.86 kB / 443.5 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.2497, allocations: 11.95 kB / 443.5 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007835/0.2505, allocations: 1.276 MB / 444.7 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2505, allocations: 0 / 444.7 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009858/0.2515, allocations: 0.721 MB / 445.5 MB, free: 4.383 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002462/0.2517, allocations: 211.9 kB / 445.7 MB, free: 4.156 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.439e-05/0.2518, allocations: 8 kB / 445.7 MB, free: 4.148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.2522, allocations: 27.98 kB / 445.7 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.243e-05/0.2523, allocations: 27.95 kB / 445.7 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.2523, allocations: 12 kB / 445.7 MB, free: 4.082 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007468/0.2531, allocations: 0.6014 MB / 446.3 MB, free: 3.469 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2531, allocations: 0 / 446.3 MB, free: 3.469 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001065/0.2542, allocations: 352 kB / 446.7 MB, free: 3.125 MB / 314.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.0002308/0.2544, allocations: 119.2 kB / 446.8 MB, free: 3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001522/0.2559, allocations: 0.9818 MB / 447.8 MB, free: 1.996 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.2559, allocations: 0 / 447.8 MB, free: 1.996 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003826/0.2563, allocations: 294.6 kB / 448.1 MB, free: 1.695 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.2574, allocations: 242.3 kB / 448.3 MB, free: 1.465 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003016/0.2604, allocations: 2.25 MB / 450.6 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005277/0.261, allocations: 1.021 MB / 451.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.2612, allocations: 67.42 kB / 451.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2612, allocations: 0 / 451.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of Templates: time 0.02094/0.2821, allocations: 16.65 MB / 468.3 MB, free: 13.42 MB / 346.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/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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches