Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002565/0.002564, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.49/3.49, allocations: 205.4 MB / 222.5 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001787/0.001787, allocations: 97.48 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006856/0.0006856, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6324/0.6331, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01659/0.6498, allocations: 6.596 MB / 381.1 MB, free: 40.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009525/0.6594, allocations: 2.607 MB / 383.7 MB, free: 38.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002267/0.6618, allocations: 29.31 kB / 383.8 MB, free: 38.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003333/0.6652, allocations: 446.3 kB / 384.2 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003901/0.6691, allocations: 467.2 kB / 384.7 MB, free: 37.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00224/0.6714, allocations: 252.7 kB / 384.9 MB, free: 37.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004992/0.6764, allocations: 1.041 MB / 385.9 MB, free: 36.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001913/0.6784, allocations: 448.3 kB / 386.4 MB, free: 36.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001692/0.6802, allocations: 423.9 kB / 386.8 MB, free: 36.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.6822, allocations: 478.2 kB / 387.3 MB, free: 35.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005559/0.6828, allocations: 57.25 kB / 387.3 MB, free: 35.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.6841, allocations: 103 kB / 387.4 MB, free: 35.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002999/0.6844, allocations: 177.1 kB / 387.6 MB, free: 35.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008281/0.6853, allocations: 261.2 kB / 387.9 MB, free: 35.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00324/0.6885, allocations: 1.274 MB / 389.1 MB, free: 34.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.6886, allocations: 4 kB / 389.1 MB, free: 34.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.128e-06/0.6886, allocations: 0 / 389.1 MB, free: 34.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.151e-05/0.6887, allocations: 4 kB / 389.1 MB, free: 34.18 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.004869/0.6936, allocations: 1.3 MB / 390.4 MB, free: 32.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.239e-05/0.6937, allocations: 8.031 kB / 390.4 MB, free: 32.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/0.6951, allocations: 174.3 kB / 390.6 MB, free: 32.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002974/0.6981, allocations: 0.7503 MB / 391.4 MB, free: 31.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.6983, allocations: 73.94 kB / 391.4 MB, free: 31.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003734/0.6987, allocations: 103.8 kB / 391.5 MB, free: 31.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004047/0.7028, allocations: 0.9466 MB / 392.5 MB, free: 30.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.636e-05/0.7029, allocations: 4 kB / 392.5 MB, free: 30.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/0.7031, allocations: 40 kB / 392.5 MB, free: 30.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-05/0.7032, allocations: 24 kB / 392.5 MB, free: 30.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003446/0.7067, allocations: 0.6441 MB / 393.2 MB, free: 29.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01255/0.7193, allocations: 4.089 MB / 397.3 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002592/0.7219, allocations: 455.8 kB / 397.7 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.693e-05/0.7221, allocations: 4.625 kB / 397.7 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.7221, allocations: 42.5 kB / 397.8 MB, free: 25.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 5.059e-06/0.7222, allocations: 0 / 397.8 MB, free: 25.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.00558/0.7278, allocations: 1.353 MB / 399.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.758e-05/0.7279, allocations: 106.8 kB / 399.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00227/0.7302, allocations: 0.8355 MB / 400.1 MB, free: 22.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.7304, allocations: 33.7 kB / 400.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006148/0.731, allocations: 0.5978 MB / 400.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.7313, allocations: 153.8 kB / 400.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.309e-05/0.7314, allocations: 16 kB / 400.9 MB, free: 21.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.7315, allocations: 342.8 kB / 401.2 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008253/0.7324, allocations: 173.9 kB / 401.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.7335, allocations: 489.7 kB / 401.8 MB, free: 20.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.7346, allocations: 243.7 kB / 402.1 MB, free: 20.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.7347, allocations: 7.938 kB / 402.1 MB, free: 20.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002811/0.7375, allocations: 0.6854 MB / 402.8 MB, free: 19.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001307/0.7389, allocations: 4.089 MB / 406.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-05/0.739, allocations: 12 kB / 406.9 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003691/0.7394, allocations: 36.84 kB / 406.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/0.741, allocations: 175.7 kB / 407.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/0.7427, allocations: 1.303 MB / 408.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.7443, allocations: 39.98 kB / 408.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.7446, allocations: 39.98 kB / 408.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.7446, allocations: 0.9375 kB / 408.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002456/0.7471, allocations: 0.6133 MB / 409.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.193e-05/0.7472, allocations: 12.75 kB / 409.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001948/0.7474, allocations: 40.94 kB / 409.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001466/0.7489, allocations: 167.7 kB / 409.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.7505, allocations: 1.288 MB / 410.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009324/0.7514, allocations: 35.98 kB / 410.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.7516, allocations: 36 kB / 410.7 MB, free: 11.39 MB / 298.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.001055/0.7527, allocations: 340.8 kB / 411 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003738/0.7531, allocations: 94.81 kB / 411.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001949/0.755, allocations: 439.4 kB / 411.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.7551, allocations: 4 kB / 411.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.7551, allocations: 0 / 411.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.7552, allocations: 0 / 411.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004678/0.7599, allocations: 1.359 MB / 412.9 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.7599, allocations: 0 / 412.9 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.7612, allocations: 83.84 kB / 413 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003024/0.7616, allocations: 25.08 kB / 413 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.7617, allocations: 8 kB / 413 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001858/0.7636, allocations: 1.284 MB / 414.3 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.835e-05/0.7637, allocations: 7.969 kB / 414.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.7663, allocations: 0.8183 MB / 415.1 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006704/0.767, allocations: 196 kB / 415.3 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002506/0.7673, allocations: 15.98 kB / 415.3 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009793/0.7683, allocations: 23.98 kB / 415.3 MB, free: 6.379 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.7685, allocations: 31.92 kB / 415.4 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.336e-05/0.7685, allocations: 8 kB / 415.4 MB, free: 6.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001804/0.7703, allocations: 0.5587 MB / 415.9 MB, free: 5.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.7704, allocations: 4 kB / 415.9 MB, free: 5.766 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003138/0.7736, allocations: 340 kB / 416.3 MB, free: 5.434 MB / 298.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.0004493/0.7741, allocations: 123.1 kB / 416.4 MB, free: 5.301 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003619/0.7777, allocations: 0.9819 MB / 417.4 MB, free: 4.297 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/0.7778, allocations: 3.938 kB / 417.4 MB, free: 4.293 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009781/0.7788, allocations: 284 kB / 417.6 MB, free: 4.004 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/0.7815, allocations: 223.3 kB / 417.9 MB, free: 3.789 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007129/0.7887, allocations: 2.269 MB / 420.1 MB, free: 1.461 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000938/0.7897, allocations: 1.044 MB / 421.2 MB, free: 396 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000477/0.7902, allocations: 63.44 kB / 421.2 MB, free: 332 kB / 298.7 MB Notification: Performance of SimCode: time 1.744e-06/0.7902, allocations: 0 / 421.2 MB, free: 332 kB / 298.7 MB Notification: Performance of Templates: time 0.05722/0.8475, allocations: 15.92 MB / 437.2 MB, free: 424 kB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches