Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001134/0.001134, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 160.9 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9696/0.9696, allocations: 177 MB / 205.2 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2492/0.2492, allocations: 34.87 MB / 296.6 MB, free: 0.5234 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|dcpm.iA|dcpm.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|dcpm.iA|dcpm.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.507e-06/3.507e-06, allocations: 3.984 kB / 378.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.569e-05/1.92e-05, allocations: 2.312 kB / 378.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.00379/0.003809, allocations: 3.958 MB / 382.7 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.005654, allocations: 1.456 MB / 384.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002278/0.005882, allocations: 19.88 kB / 384.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000514/0.006396, allocations: 238.2 kB / 384.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001957/0.006591, allocations: 154.7 kB / 384.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.006902, allocations: 191.7 kB / 384.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000497/0.007399, allocations: 0.6543 MB / 385.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.00764, allocations: 176.7 kB / 385.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003793/0.008019, allocations: 371.1 kB / 385.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.008204, allocations: 187.3 kB / 386.1 MB, free: 11 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.381e-05/0.008258, allocations: 64 kB / 386.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.285e-05/0.008311, allocations: 60 kB / 386.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.55e-05/0.008376, allocations: 135.5 kB / 386.4 MB, free: 10.75 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.008496, allocations: 195.5 kB / 386.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.008848, allocations: 414.4 kB / 387 MB, free: 10.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.00885, allocations: 0 / 387 MB, free: 10.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.00885, allocations: 0 / 387 MB, free: 10.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.008856, allocations: 4 kB / 387 MB, free: 10.14 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.0008522/0.009708, allocations: 0.8851 MB / 387.8 MB, free: 9.223 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.009738, allocations: 8.031 kB / 387.9 MB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.00984, allocations: 100.5 kB / 387.9 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00036/0.0102, allocations: 356.1 kB / 388.3 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.01022, allocations: 29.38 kB / 388.3 MB, free: 8.715 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.527e-05/0.01028, allocations: 52.33 kB / 388.4 MB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004489/0.01073, allocations: 428.2 kB / 388.8 MB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.01074, allocations: 4.172 kB / 388.8 MB, free: 8.207 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.01077, allocations: 20.38 kB / 388.8 MB, free: 8.188 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.01078, allocations: 15.94 kB / 388.8 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.01103, allocations: 161.8 kB / 389 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.01244, allocations: 1.509 MB / 390.5 MB, free: 6.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003627/0.01281, allocations: 198.4 kB / 390.7 MB, free: 6.227 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.57e-05/0.01289, allocations: 71.66 kB / 390.8 MB, free: 6.152 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.01291, allocations: 7.984 kB / 390.8 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.01293, allocations: 37.39 kB / 390.8 MB, free: 6.098 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.315e-06/0.01294, allocations: 3.984 kB / 390.8 MB, free: 6.094 MB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.0008353/0.01377, allocations: 0.5677 MB / 391.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.429e-05/0.0138, allocations: 55.41 kB / 391.4 MB, free: 5.422 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.01407, allocations: 402.6 kB / 391.8 MB, free: 5.016 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.01409, allocations: 29.7 kB / 391.9 MB, free: 4.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.01424, allocations: 343 kB / 392.2 MB, free: 4.641 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.936e-05/0.01428, allocations: 91.17 kB / 392.3 MB, free: 4.551 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.401e-05/0.01435, allocations: 63.36 kB / 392.3 MB, free: 4.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.01448, allocations: 0.5235 MB / 392.9 MB, free: 3.945 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.851e-05/0.01456, allocations: 51.66 kB / 392.9 MB, free: 3.891 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.01466, allocations: 125.5 kB / 393 MB, free: 3.734 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.01485, allocations: 189.7 kB / 393.2 MB, free: 3.516 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.01485, allocations: 0 / 393.2 MB, free: 3.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002997/0.01515, allocations: 264.8 kB / 393.5 MB, free: 3.246 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.01516, allocations: 4 kB / 393.5 MB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.01517, allocations: 4 kB / 393.5 MB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001184/0.01529, allocations: 27.89 kB / 393.5 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.01544, allocations: 67.84 kB / 393.6 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007116/0.01615, allocations: 1.732 MB / 395.3 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.086e-05/0.01624, allocations: 8 kB / 395.3 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.01626, allocations: 11.94 kB / 395.3 MB, free: 1.266 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001311/0.01639, allocations: 182.7 kB / 395.5 MB, free: 1.082 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001034/0.01649, allocations: 137.5 kB / 395.6 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001718/0.01666, allocations: 193.3 kB / 395.8 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.144e-06/0.01666, allocations: 4 kB / 395.8 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0002687/0.01693, allocations: 260.8 kB / 396.1 MB, free: 424 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.141e-06/0.01694, allocations: 4 kB / 396.1 MB, free: 420 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-06/0.01694, allocations: 4 kB / 396.1 MB, free: 416 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.207e-05/0.017, allocations: 27.61 kB / 396.1 MB, free: 384 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.01714, allocations: 64.16 kB / 396.2 MB, free: 320 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006194/0.01776, allocations: 1.74 MB / 397.9 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.888e-05/0.01784, allocations: 12 kB / 397.9 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.01784, allocations: 8 kB / 398 MB, free: 14.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 9.826e-05/0.01794, allocations: 284 kB / 398.2 MB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.619e-05/0.01799, allocations: 51.88 kB / 398.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/0.01803, allocations: 43.44 kB / 398.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.01803, allocations: 4 kB / 398.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.01804, allocations: 3.938 kB / 398.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.01804, allocations: 0 / 398.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006492/0.01869, allocations: 0.6844 MB / 399 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.01869, allocations: 0 / 399 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.01883, allocations: 47.97 kB / 399.1 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-05/0.01889, allocations: 31.67 kB / 399.1 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.0189, allocations: 4 kB / 399.1 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006148/0.01951, allocations: 1.72 MB / 400.8 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.01952, allocations: 7.938 kB / 400.8 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.01985, allocations: 418.9 kB / 401.2 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.78e-05/0.01989, allocations: 39.75 kB / 401.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.01991, allocations: 12 kB / 401.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.625e-05/0.02001, allocations: 15.98 kB / 401.3 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.02005, allocations: 19.91 kB / 401.3 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.02006, allocations: 8 kB / 401.3 MB, free: 10.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001773/0.02024, allocations: 267.1 kB / 401.6 MB, free: 10.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02024, allocations: 3.938 kB / 401.6 MB, free: 10.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003353/0.02057, allocations: 148 kB / 401.7 MB, free: 10.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.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 (24): * Single equations (assignments): 23 * 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 8.275e-05/0.02065, allocations: 107.2 kB / 401.8 MB, free: 10.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00054/0.02119, allocations: 0.5878 MB / 402.4 MB, free: 9.684 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.0212, allocations: 256 / 402.4 MB, free: 9.684 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.02134, allocations: 249.5 kB / 402.7 MB, free: 9.418 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.02165, allocations: 69.47 kB / 402.7 MB, free: 9.352 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.02295, allocations: 0.9436 MB / 403.7 MB, free: 8.363 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.97e-05/0.02302, allocations: 113.1 kB / 403.8 MB, free: 8.234 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.02313, allocations: 43.23 kB / 403.8 MB, free: 8.195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.866e-05/0.02318, allocations: 32.5 kB / 403.9 MB, free: 8.16 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02318, allocations: 0 / 403.9 MB, free: 8.16 MB / 378.7 MB Notification: Performance of Templates: time 0.006056/0.02924, allocations: 4.03 MB / 407.9 MB, free: 4.184 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Machines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0471607579384]