Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 105.8 kB / 17.59 MB, free: 5.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 187.3 kB / 18.51 MB, free: 4.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 53.02 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08422/0.08525, allocations: 49.44 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009234/0.09452, allocations: 8.164 MB / 358.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004768/0.09934, allocations: 2.695 MB / 361.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009494/0.1003, allocations: 27.94 kB / 361.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.1019, allocations: 0.5317 MB / 362.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00141/0.1034, allocations: 428.5 kB / 362.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007842/0.1042, allocations: 371.1 kB / 362.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.1058, allocations: 1.495 MB / 364.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000849/0.1067, allocations: 0.6126 MB / 365 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006953/0.1074, allocations: 0.5447 MB / 365.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006168/0.108, allocations: 0.6026 MB / 366.2 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001669/0.1082, allocations: 140 kB / 366.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003303/0.1085, allocations: 180 kB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.1087, allocations: 294.9 kB / 366.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005662/0.1093, allocations: 0.6646 MB / 367.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001562/0.1109, allocations: 1.69 MB / 369.1 MB, free: 1.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1109, allocations: 4 kB / 369.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1109, allocations: 0 / 369.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.111, allocations: 0 / 369.1 MB, free: 1.914 MB / 302.1 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.002449/0.1134, allocations: 1.503 MB / 370.7 MB, free: 364 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.1135, allocations: 16.03 kB / 370.7 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006021/0.1141, allocations: 183.2 kB / 370.8 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1398/0.2539, allocations: 0.7722 MB / 371.6 MB, free: 25.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.31e-05/0.254, allocations: 74.02 kB / 371.7 MB, free: 25.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/0.2542, allocations: 101.9 kB / 371.8 MB, free: 25.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.2558, allocations: 0.9552 MB / 372.7 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.2559, allocations: 3.406 kB / 372.7 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-05/0.2559, allocations: 45.12 kB / 372.8 MB, free: 24.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.256, allocations: 25.78 kB / 372.8 MB, free: 24.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.2572, allocations: 0.6425 MB / 373.5 MB, free: 24.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00509/0.2623, allocations: 4.109 MB / 377.6 MB, free: 21.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009866/0.2633, allocations: 434.9 kB / 378 MB, free: 21.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.2636, allocations: 161 kB / 378.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.2636, allocations: 4.922 kB / 378.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.2637, allocations: 41.25 kB / 378.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.986e-06/0.2637, allocations: 0 / 378.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00233/0.266, allocations: 1.317 MB / 379.5 MB, free: 20.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.2661, allocations: 111.8 kB / 379.6 MB, free: 20.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.2673, allocations: 0.8948 MB / 380.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.2673, allocations: 30.98 kB / 380.5 MB, free: 20.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.2677, allocations: 0.5941 MB / 381.1 MB, free: 19.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2678, allocations: 149.8 kB / 381.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.268, allocations: 135.3 kB / 381.4 MB, free: 19.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.123e-05/0.268, allocations: 337.2 kB / 381.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003286/0.2684, allocations: 176.6 kB / 381.9 MB, free: 19.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.2688, allocations: 497.5 kB / 382.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007216/0.2696, allocations: 0.6844 MB / 383.1 MB, free: 18.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.2696, allocations: 3.719 kB / 383.1 MB, free: 18.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001286/0.2709, allocations: 0.7507 MB / 383.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.2709, allocations: 8.625 kB / 383.9 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.2709, allocations: 10.89 kB / 383.9 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.2711, allocations: 35 kB / 383.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005743/0.2717, allocations: 171.2 kB / 384.1 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007776/0.2725, allocations: 1.396 MB / 385.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006301/0.2731, allocations: 38.53 kB / 385.5 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.712e-05/0.2732, allocations: 34.81 kB / 385.5 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005436/0.2737, allocations: 349.2 kB / 385.9 MB, free: 16.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003764/0.2741, allocations: 488.7 kB / 386.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006469/0.2748, allocations: 0.6604 MB / 387 MB, free: 15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.21e-06/0.2748, allocations: 2.375 kB / 387 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00115/0.276, allocations: 0.7232 MB / 387.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.276, allocations: 9.781 kB / 387.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.276, allocations: 9.719 kB / 387.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000103/0.2761, allocations: 35.97 kB / 387.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005183/0.2766, allocations: 166.7 kB / 388 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006867/0.2773, allocations: 1.39 MB / 389.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006049/0.278, allocations: 37.34 kB / 389.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.278, allocations: 36.78 kB / 389.4 MB, free: 13.21 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002019/0.2782, allocations: 226.8 kB / 389.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.2783, allocations: 92 kB / 389.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008138/0.2792, allocations: 442 kB / 390.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.2792, allocations: 4 kB / 390.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.2792, allocations: 3.719 kB / 390.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.2792, allocations: 3.172 kB / 390.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.2813, allocations: 1.38 MB / 391.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.2813, allocations: 2.5 kB / 391.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.2816, allocations: 82 kB / 391.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.071e-05/0.2817, allocations: 23.41 kB / 391.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.2818, allocations: 8.281 kB / 391.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006423/0.2824, allocations: 1.369 MB / 393 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2824, allocations: 1.375 kB / 393 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.2835, allocations: 0.7226 MB / 393.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.2838, allocations: 203.4 kB / 394 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.2839, allocations: 8.469 kB / 394 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003887/0.2843, allocations: 28.22 kB / 394 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.453e-05/0.2843, allocations: 31.28 kB / 394 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.2844, allocations: 13.56 kB / 394 MB, free: 9.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007793/0.2852, allocations: 0.6105 MB / 394.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2852, allocations: 0 / 394.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001353/0.2865, allocations: 348.3 kB / 395 MB, free: 9.582 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001984/0.2867, allocations: 114.7 kB / 395.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.2883, allocations: 0.9981 MB / 396.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.2884, allocations: 1.375 kB / 396.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003714/0.2887, allocations: 278.1 kB / 396.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001228/0.29, allocations: 244.1 kB / 396.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/0.2929, allocations: 1.871 MB / 398.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.2933, allocations: 1.022 MB / 399.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.2935, allocations: 68.84 kB / 399.6 MB, free: 6.57 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2935, allocations: 5.219 kB / 399.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of Templates: time 0.01933/0.3129, allocations: 16.77 MB / 416.3 MB, free: 6.82 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches