Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001268/0.001268, allocations: 103.9 kB / 18.39 MB, free: 4.641 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.001446/0.001446, allocations: 190.5 kB / 19.33 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.513/1.513, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 63.84 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1033, allocations: 46.61 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.2282/0.3316, allocations: 8.136 MB / 384 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005907/0.3375, allocations: 2.747 MB / 386.7 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001156/0.3388, allocations: 31.75 kB / 386.7 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.3404, allocations: 0.5563 MB / 387.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001197/0.3416, allocations: 473.6 kB / 387.8 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007908/0.3424, allocations: 361.4 kB / 388.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001647/0.3441, allocations: 1.508 MB / 389.6 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008458/0.3449, allocations: 0.6084 MB / 390.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008592/0.3458, allocations: 0.5617 MB / 390.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006462/0.3464, allocations: 0.6061 MB / 391.4 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001907/0.3466, allocations: 139.3 kB / 391.5 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003854/0.347, allocations: 178.6 kB / 391.7 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002094/0.3472, allocations: 290 kB / 392 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005371/0.3478, allocations: 0.6663 MB / 392.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00242/0.3502, allocations: 1.726 MB / 394.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.3502, allocations: 1.172 kB / 394.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.3502, allocations: 0 / 394.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.3503, allocations: 4 kB / 394.4 MB, free: 3.824 MB / 318.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.002768/0.353, allocations: 1.509 MB / 395.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.3531, allocations: 10.16 kB / 395.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006356/0.3537, allocations: 190.9 kB / 396.1 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.355, allocations: 0.7957 MB / 396.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.738e-05/0.3551, allocations: 78.06 kB / 397 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.3553, allocations: 100.6 kB / 397.1 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.3568, allocations: 0.952 MB / 398 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.3569, allocations: 2.375 kB / 398 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-05/0.3569, allocations: 41.56 kB / 398.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/0.357, allocations: 24.45 kB / 398.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.3582, allocations: 0.6348 MB / 398.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005103/0.3633, allocations: 4.098 MB / 402.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.3643, allocations: 419.6 kB / 403.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.3647, allocations: 163.9 kB / 403.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.3647, allocations: 8.453 kB / 403.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.3648, allocations: 36.67 kB / 403.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.495e-06/0.3648, allocations: 1.125 kB / 403.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002512/0.3673, allocations: 1.322 MB / 404.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.3674, allocations: 111.5 kB / 404.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/0.3686, allocations: 0.9023 MB / 405.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.3687, allocations: 32.33 kB / 405.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/0.3691, allocations: 0.5866 MB / 406.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.3693, allocations: 148.8 kB / 406.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/0.3695, allocations: 135.8 kB / 406.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3696, allocations: 336.2 kB / 407 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003402/0.37, allocations: 180.4 kB / 407.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000564/0.3705, allocations: 489.6 kB / 407.6 MB, free: 11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009097/0.3714, allocations: 0.6836 MB / 408.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3715, allocations: 3.312 kB / 408.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001297/0.3728, allocations: 0.7496 MB / 409.1 MB, free: 9.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.3728, allocations: 13.16 kB / 409.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.3728, allocations: 15.44 kB / 409.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/0.373, allocations: 36.06 kB / 409.1 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005743/0.3736, allocations: 168.9 kB / 409.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.3748, allocations: 1.394 MB / 410.7 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005831/0.3754, allocations: 35.64 kB / 410.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.3754, allocations: 33.47 kB / 410.8 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005893/0.376, allocations: 355.6 kB / 411.1 MB, free: 8.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005428/0.3766, allocations: 481.9 kB / 411.6 MB, free: 7.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008311/0.3774, allocations: 0.6683 MB / 412.3 MB, free: 7.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.392e-06/0.3774, allocations: 2.875 kB / 412.3 MB, free: 7.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001201/0.3786, allocations: 0.7289 MB / 413 MB, free: 6.715 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3787, allocations: 9.906 kB / 413 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.3787, allocations: 10.41 kB / 413 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.378e-05/0.3788, allocations: 27.17 kB / 413 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/0.3793, allocations: 171.7 kB / 413.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.3803, allocations: 1.389 MB / 414.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005684/0.3809, allocations: 33.23 kB / 414.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.894e-05/0.381, allocations: 36.88 kB / 414.7 MB, free: 5.199 MB / 334.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.00025/0.3812, allocations: 242.4 kB / 414.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.3814, allocations: 94.69 kB / 415 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009082/0.3823, allocations: 432.4 kB / 415.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.3823, allocations: 4.062 kB / 415.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3823, allocations: 5.281 kB / 415.4 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3823, allocations: 3.938 kB / 415.4 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.3845, allocations: 1.375 MB / 416.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3845, allocations: 1.25 kB / 416.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003431/0.3848, allocations: 72.62 kB / 416.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.988e-05/0.3849, allocations: 31.84 kB / 416.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.385, allocations: 13.19 kB / 416.9 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009926/0.386, allocations: 1.382 MB / 418.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.386, allocations: 1.625 kB / 418.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.387, allocations: 0.7113 MB / 419 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.3873, allocations: 206 kB / 419.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.3874, allocations: 17.94 kB / 419.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.3878, allocations: 19.05 kB / 419.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.231e-05/0.3879, allocations: 28.3 kB / 419.3 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.3879, allocations: 13.38 kB / 419.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000867/0.3888, allocations: 0.606 MB / 419.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3888, allocations: 1.938 kB / 419.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001284/0.3901, allocations: 346.1 kB / 420.2 MB, free: 1.051 MB / 334.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.0002362/0.3903, allocations: 134.4 kB / 420.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.392, allocations: 0.9852 MB / 421.3 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.392, allocations: 0 / 421.3 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004568/0.3925, allocations: 287.2 kB / 421.6 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.3936, allocations: 235.8 kB / 421.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.3967, allocations: 1.855 MB / 423.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.3973, allocations: 1.021 MB / 424.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.3975, allocations: 63.44 kB / 424.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3975, allocations: 0 / 424.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of Templates: time 0.02268/0.4202, allocations: 16.95 MB / 441.7 MB, free: 11.93 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches