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.001486/0.001486, allocations: 191.9 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 226.6 MB / 244.7 MB, free: 6.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007565/0.0007565, allocations: 102.5 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002046/0.0002046, allocations: 4 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1869, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.005407/0.1923, allocations: 7.188 MB / 415.2 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.1957, allocations: 2.561 MB / 417.8 MB, free: 17.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005098/0.1963, allocations: 27.88 kB / 417.8 MB, free: 17.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009552/0.1972, allocations: 445.4 kB / 418.3 MB, free: 17.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00064/0.1979, allocations: 353.3 kB / 418.6 MB, free: 17.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004947/0.1984, allocations: 250.6 kB / 418.9 MB, free: 16.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009088/0.1993, allocations: 1.378 MB / 420.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005948/0.1999, allocations: 0.5291 MB / 420.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004312/0.2003, allocations: 449.9 kB / 421.2 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.2007, allocations: 0.4936 MB / 421.7 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.948e-05/0.2008, allocations: 64 kB / 421.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.2011, allocations: 99.98 kB / 421.9 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.2012, allocations: 191 kB / 422 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003502/0.2016, allocations: 0.5652 MB / 422.6 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007848/0.2023, allocations: 1.328 MB / 423.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2024, allocations: 0 / 423.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2024, allocations: 0 / 423.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.2024, allocations: 0 / 423.9 MB, free: 11.74 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.001709/0.2041, allocations: 1.301 MB / 425.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2041, allocations: 8.031 kB / 425.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005063/0.2047, allocations: 199.1 kB / 425.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008981/0.2056, allocations: 0.7705 MB / 426.2 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.438e-05/0.2056, allocations: 78.12 kB / 426.3 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.2057, allocations: 103.9 kB / 426.4 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.207, allocations: 0.9458 MB / 427.3 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.207, allocations: 8 kB / 427.3 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.77e-05/0.2071, allocations: 40 kB / 427.4 MB, free: 8.156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.2071, allocations: 27.94 kB / 427.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009824/0.2081, allocations: 0.6364 MB / 428 MB, free: 7.492 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.212, allocations: 4.138 MB / 432.2 MB, free: 3.125 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008566/0.2129, allocations: 469.7 kB / 432.6 MB, free: 2.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002501/0.2131, allocations: 165.5 kB / 432.8 MB, free: 2.496 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.844e-05/0.2132, allocations: 4 kB / 432.8 MB, free: 2.492 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.2132, allocations: 42.56 kB / 432.8 MB, free: 2.441 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.174e-06/0.2132, allocations: 7.875 kB / 432.9 MB, free: 2.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001925/0.2151, allocations: 1.35 MB / 434.2 MB, free: 1.012 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.2152, allocations: 106.8 kB / 434.3 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009016/0.2161, allocations: 0.8859 MB / 435.2 MB, free: 15.97 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.2161, allocations: 29.7 kB / 435.2 MB, free: 15.94 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003869/0.2165, allocations: 0.5876 MB / 435.8 MB, free: 15.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.2166, allocations: 149.8 kB / 436 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.2167, allocations: 16 kB / 436 MB, free: 15.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2168, allocations: 333.9 kB / 436.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003231/0.2172, allocations: 173.9 kB / 436.5 MB, free: 14.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.2177, allocations: 0.4899 MB / 437 MB, free: 14.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008523/0.2185, allocations: 0.6868 MB / 437.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.2186, allocations: 0 / 437.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001184/0.2197, allocations: 0.751 MB / 438.4 MB, free: 12.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002367/0.22, allocations: 408.7 kB / 438.8 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.22, allocations: 12 kB / 438.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001586/0.2202, allocations: 36.84 kB / 438.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005609/0.2207, allocations: 167.7 kB / 439 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009603/0.2217, allocations: 1.292 MB / 440.3 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005251/0.2223, allocations: 47.98 kB / 440.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.82e-05/0.2223, allocations: 40 kB / 440.4 MB, free: 10.17 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.962e-06/0.2223, allocations: 4 kB / 440.4 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009232/0.2233, allocations: 0.6019 MB / 441 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2233, allocations: 12 kB / 441 MB, free: 9.547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.981e-05/0.2234, allocations: 36.84 kB / 441 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000491/0.2239, allocations: 160.2 kB / 441.2 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007803/0.2247, allocations: 1.284 MB / 442.5 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004737/0.2252, allocations: 47.98 kB / 442.5 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.693e-05/0.2252, allocations: 36 kB / 442.6 MB, free: 7.855 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.0004483/0.2257, allocations: 336.8 kB / 442.9 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.2258, allocations: 90.88 kB / 443 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007993/0.2266, allocations: 459.5 kB / 443.4 MB, free: 6.969 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2266, allocations: 4 kB / 443.4 MB, free: 6.965 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2266, allocations: 0 / 443.4 MB, free: 6.965 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2266, allocations: 3.938 kB / 443.4 MB, free: 6.961 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.2285, allocations: 1.396 MB / 444.8 MB, free: 5.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2286, allocations: 0 / 444.8 MB, free: 5.484 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003796/0.2289, allocations: 83.89 kB / 444.9 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.194e-05/0.229, allocations: 24.84 kB / 444.9 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.2291, allocations: 8 kB / 444.9 MB, free: 5.367 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007909/0.2299, allocations: 1.269 MB / 446.2 MB, free: 3.965 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.2299, allocations: 7.969 kB / 446.2 MB, free: 3.957 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.2309, allocations: 0.7435 MB / 447 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.2312, allocations: 200 kB / 447.2 MB, free: 2.957 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.609e-05/0.2313, allocations: 19.98 kB / 447.2 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003734/0.2317, allocations: 19.98 kB / 447.2 MB, free: 2.918 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.2317, allocations: 27.97 kB / 447.2 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.2318, allocations: 12 kB / 447.2 MB, free: 2.879 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007749/0.2325, allocations: 0.6053 MB / 447.8 MB, free: 2.262 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2326, allocations: 0 / 447.8 MB, free: 2.262 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001097/0.2337, allocations: 344 kB / 448.2 MB, free: 1.926 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.0001957/0.2339, allocations: 123.2 kB / 448.3 MB, free: 1.793 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.2354, allocations: 0.9775 MB / 449.3 MB, free: 0.793 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.2354, allocations: 7.938 kB / 449.3 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003847/0.2358, allocations: 288.2 kB / 449.6 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.2371, allocations: 231.4 kB / 449.8 MB, free: 284 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002886/0.2399, allocations: 2.255 MB / 452 MB, free: 13.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.2405, allocations: 1.021 MB / 453.1 MB, free: 12.9 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.2407, allocations: 67.38 kB / 453.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2407, allocations: 0 / 453.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of Templates: time 0.01945/0.2602, allocations: 16.62 MB / 469.8 MB, free: 12.25 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