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.001436/0.001436, allocations: 109.2 kB / 17.74 MB, free: 5.316 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.00152/0.001521, allocations: 188.2 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.277/2.277, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 51.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3859, allocations: 49.42 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01899/0.405, allocations: 8.171 MB / 409.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009756/0.4148, allocations: 2.699 MB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001784/0.4167, allocations: 27.94 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003475/0.4202, allocations: 0.5317 MB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003362/0.4236, allocations: 436.5 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001997/0.4257, allocations: 366.8 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003915/0.4296, allocations: 1.503 MB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001891/0.4315, allocations: 0.601 MB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00176/0.4333, allocations: 0.5563 MB / 416.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00162/0.435, allocations: 0.6026 MB / 416.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004952/0.4355, allocations: 140 kB / 417 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008182/0.4364, allocations: 188 kB / 417.2 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004863/0.4369, allocations: 286.9 kB / 417.5 MB, free: 8.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001581/0.4385, allocations: 0.6646 MB / 418.2 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004043/0.4425, allocations: 1.721 MB / 419.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.978e-06/0.4426, allocations: 0 / 419.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4426, allocations: 0 / 419.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.733e-05/0.4427, allocations: 0 / 419.9 MB, free: 6.336 MB / 334.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.006429/0.4492, allocations: 1.511 MB / 421.4 MB, free: 4.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.4493, allocations: 8.031 kB / 421.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/0.4507, allocations: 187.3 kB / 421.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002733/0.4534, allocations: 0.7977 MB / 422.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.4536, allocations: 81.92 kB / 422.5 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003244/0.4539, allocations: 96 kB / 422.5 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003337/0.4573, allocations: 0.9497 MB / 423.5 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.421e-05/0.4574, allocations: 11.84 kB / 423.5 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.4576, allocations: 36 kB / 423.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.291e-05/0.4576, allocations: 28 kB / 423.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.4601, allocations: 0.6363 MB / 424.2 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01113/0.4712, allocations: 4.084 MB / 428.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/0.4733, allocations: 427.7 kB / 428.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006071/0.4739, allocations: 169.4 kB / 428.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.488e-05/0.474, allocations: 4 kB / 428.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.867e-05/0.4741, allocations: 38.56 kB / 428.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 4.408e-06/0.4741, allocations: 0 / 428.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004802/0.4789, allocations: 1.315 MB / 430.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.4791, allocations: 110.8 kB / 430.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002534/0.4816, allocations: 0.8936 MB / 431.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.202e-05/0.4817, allocations: 37.64 kB / 431.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007636/0.4825, allocations: 0.5914 MB / 431.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/0.4828, allocations: 145.9 kB / 432 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003914/0.4832, allocations: 142.5 kB / 432.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.4834, allocations: 334 kB / 432.5 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006597/0.4841, allocations: 172.8 kB / 432.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.4851, allocations: 0.4898 MB / 433.1 MB, free: 8.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/0.487, allocations: 0.6792 MB / 433.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.896e-06/0.487, allocations: 0 / 433.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002594/0.4896, allocations: 0.7505 MB / 434.6 MB, free: 6.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.4897, allocations: 8 kB / 434.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.832e-05/0.4897, allocations: 15.94 kB / 434.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002868/0.49, allocations: 36.84 kB / 434.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.4912, allocations: 167.7 kB / 434.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.4928, allocations: 1.398 MB / 436.2 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.4939, allocations: 43.95 kB / 436.2 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.359e-05/0.494, allocations: 36 kB / 436.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001035/0.4951, allocations: 350.1 kB / 436.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008933/0.496, allocations: 481.7 kB / 437.1 MB, free: 4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001378/0.4974, allocations: 0.6561 MB / 437.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.92e-05/0.4974, allocations: 4 kB / 437.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.002168/0.4996, allocations: 0.7198 MB / 438.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.4997, allocations: 8.156 kB / 438.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.4997, allocations: 16 kB / 438.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001773/0.4999, allocations: 32.86 kB / 438.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009818/0.5009, allocations: 171.6 kB / 438.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001632/0.5025, allocations: 1.382 MB / 440.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.5038, allocations: 35.89 kB / 440.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.7e-05/0.5039, allocations: 36 kB / 440.1 MB, free: 0.6445 MB / 350.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.000368/0.5043, allocations: 236.1 kB / 440.4 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003587/0.5046, allocations: 90.88 kB / 440.4 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.5063, allocations: 431.2 kB / 440.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.5063, allocations: 4 kB / 440.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.5063, allocations: 4 kB / 440.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.5064, allocations: 7.938 kB / 440.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/0.5106, allocations: 1.384 MB / 442.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.5107, allocations: 7.938 kB / 442.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007932/0.5115, allocations: 75.91 kB / 442.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/0.5117, allocations: 24.84 kB / 442.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.287e-05/0.5117, allocations: 8 kB / 442.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/0.5135, allocations: 1.375 MB / 443.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.5136, allocations: 0 / 443.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/0.5159, allocations: 0.7145 MB / 444.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007203/0.5167, allocations: 211.9 kB / 444.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002769/0.517, allocations: 8 kB / 444.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008516/0.5178, allocations: 19.98 kB / 444.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.518, allocations: 35.89 kB / 444.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.315e-05/0.5181, allocations: 16 kB / 444.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001726/0.5198, allocations: 0.6015 MB / 445.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5198, allocations: 0 / 445.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002467/0.5223, allocations: 348 kB / 445.7 MB, free: 10.76 MB / 366.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.0003687/0.5227, allocations: 132.6 kB / 445.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003107/0.5258, allocations: 0.9747 MB / 446.8 MB, free: 9.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.5259, allocations: 0 / 446.8 MB, free: 9.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008023/0.5267, allocations: 286.4 kB / 447.1 MB, free: 9.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002407/0.5291, allocations: 242.4 kB / 447.3 MB, free: 9.098 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005763/0.5349, allocations: 1.852 MB / 449.2 MB, free: 7.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.536, allocations: 1.021 MB / 450.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003847/0.5364, allocations: 67.42 kB / 450.3 MB, free: 6.074 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5365, allocations: 0 / 450.3 MB, free: 6.074 MB / 366.1 MB Notification: Performance of Templates: time 0.04233/0.5788, allocations: 17.06 MB / 467.3 MB, free: 5.062 MB / 382.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