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.001306/0.001307, allocations: 173.5 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.666/1.666, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008218/0.0008218, allocations: 90.41 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2434, allocations: 47.56 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006552/0.25, allocations: 7.175 MB / 382.3 MB, free: 39.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004488/0.2546, allocations: 2.572 MB / 384.8 MB, free: 37.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007961/0.2554, allocations: 26.69 kB / 384.9 MB, free: 37.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.2566, allocations: 443.8 kB / 385.3 MB, free: 37.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009196/0.2576, allocations: 364.1 kB / 385.6 MB, free: 37.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005752/0.2582, allocations: 233.6 kB / 385.9 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.2595, allocations: 1.385 MB / 387.3 MB, free: 36.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007513/0.2603, allocations: 0.5258 MB / 387.8 MB, free: 35.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006558/0.261, allocations: 450.3 kB / 388.2 MB, free: 35.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004329/0.2614, allocations: 0.4915 MB / 388.7 MB, free: 35.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.254e-05/0.2615, allocations: 60 kB / 388.8 MB, free: 34.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002495/0.2618, allocations: 99.97 kB / 388.9 MB, free: 34.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.2619, allocations: 191 kB / 389.1 MB, free: 34.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003637/0.2622, allocations: 0.5691 MB / 389.6 MB, free: 34.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007959/0.263, allocations: 1.332 MB / 391 MB, free: 32.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.2631, allocations: 0 / 391 MB, free: 32.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.2631, allocations: 0 / 391 MB, free: 32.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.2631, allocations: 0 / 391 MB, free: 32.76 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.001772/0.2649, allocations: 1.304 MB / 392.3 MB, free: 31.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2649, allocations: 16.03 kB / 392.3 MB, free: 31.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005063/0.2654, allocations: 187.2 kB / 392.5 MB, free: 31.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009225/0.2664, allocations: 0.7822 MB / 393.2 MB, free: 30.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.2664, allocations: 74.12 kB / 393.3 MB, free: 30.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.2665, allocations: 104 kB / 393.4 MB, free: 30.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.2678, allocations: 0.9458 MB / 394.4 MB, free: 29.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.2679, allocations: 7.906 kB / 394.4 MB, free: 29.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.961e-05/0.2679, allocations: 40 kB / 394.4 MB, free: 29.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.268, allocations: 24 kB / 394.4 MB, free: 29.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009958/0.269, allocations: 0.648 MB / 395.1 MB, free: 28.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003901/0.2729, allocations: 4.135 MB / 399.2 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008179/0.2737, allocations: 467.8 kB / 399.7 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.2739, allocations: 169.4 kB / 399.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.274, allocations: 11.75 kB / 399.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.274, allocations: 42.5 kB / 399.9 MB, free: 23.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.743e-06/0.274, allocations: 0 / 399.9 MB, free: 23.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001922/0.276, allocations: 1.353 MB / 401.2 MB, free: 22.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.276, allocations: 106.8 kB / 401.4 MB, free: 21.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008669/0.2769, allocations: 0.8901 MB / 402.2 MB, free: 20.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.2769, allocations: 33.7 kB / 402.3 MB, free: 20.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000255/0.2772, allocations: 0.5914 MB / 402.9 MB, free: 20.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.949e-05/0.2772, allocations: 149.9 kB / 403 MB, free: 20.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.266e-05/0.2773, allocations: 12 kB / 403 MB, free: 20.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.505e-05/0.2773, allocations: 338 kB / 403.4 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.2776, allocations: 165.9 kB / 403.5 MB, free: 19.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003694/0.278, allocations: 0.4899 MB / 404 MB, free: 19.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006814/0.2787, allocations: 0.6831 MB / 404.7 MB, free: 18.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.2787, allocations: 4 kB / 404.7 MB, free: 18.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009452/0.2796, allocations: 0.7583 MB / 405.5 MB, free: 17.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001345/0.2798, allocations: 396.7 kB / 405.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.2798, allocations: 15.94 kB / 405.9 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001367/0.28, allocations: 32.86 kB / 405.9 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004893/0.2805, allocations: 179.7 kB / 406.1 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006761/0.2811, allocations: 1.288 MB / 407.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004771/0.2816, allocations: 51.89 kB / 407.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.2817, allocations: 32 kB / 407.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.049e-06/0.2817, allocations: 4 kB / 407.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007873/0.2825, allocations: 0.6092 MB / 408 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2825, allocations: 12 kB / 408.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7e-05/0.2826, allocations: 37.56 kB / 408.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004479/0.283, allocations: 171.7 kB / 408.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000546/0.2836, allocations: 1.288 MB / 409.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004099/0.284, allocations: 35.92 kB / 409.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.284, allocations: 36 kB / 409.6 MB, free: 12.85 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.0003436/0.2844, allocations: 340.8 kB / 410 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.28e-05/0.2845, allocations: 98.72 kB / 410 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000668/0.2852, allocations: 447.2 kB / 410.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.2852, allocations: 4 kB / 410.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.2852, allocations: 0 / 410.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2852, allocations: 3.984 kB / 410.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.2868, allocations: 1.39 MB / 411.9 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.2868, allocations: 0 / 411.9 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/0.2871, allocations: 79.91 kB / 412 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.936e-05/0.2872, allocations: 29.06 kB / 412 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.2872, allocations: 8 kB / 412 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005377/0.2877, allocations: 1.284 MB / 413.3 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2878, allocations: 7.875 kB / 413.3 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008139/0.2886, allocations: 0.7312 MB / 414 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002006/0.2888, allocations: 208 kB / 414.2 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.535e-05/0.2889, allocations: 16 kB / 414.2 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.2892, allocations: 23.98 kB / 414.3 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.257e-05/0.2893, allocations: 27.97 kB / 414.3 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.2893, allocations: 11.98 kB / 414.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006216/0.29, allocations: 0.6055 MB / 414.9 MB, free: 7.254 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.29, allocations: 0 / 414.9 MB, free: 7.254 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009908/0.291, allocations: 352 kB / 415.2 MB, free: 6.91 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.0001775/0.2911, allocations: 123.8 kB / 415.4 MB, free: 6.781 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.2924, allocations: 0.9781 MB / 416.3 MB, free: 5.781 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.2924, allocations: 4 kB / 416.4 MB, free: 5.777 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.2927, allocations: 291 kB / 416.6 MB, free: 5.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.2939, allocations: 218.7 kB / 416.9 MB, free: 5.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.2963, allocations: 2.276 MB / 419.1 MB, free: 2.938 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.2967, allocations: 1.021 MB / 420.1 MB, free: 1.887 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.2969, allocations: 67.42 kB / 420.2 MB, free: 1.82 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2969, allocations: 0 / 420.2 MB, free: 1.82 MB / 298.7 MB Notification: Performance of Templates: time 0.02072/0.3176, allocations: 16.68 MB / 436.9 MB, free: 1.141 MB / 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/jenkins/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