Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.SMPM_NominalOperation.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo) 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(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") translateModel(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.001081, allocations: 107.8 kB / 16.41 MB, free: 6.512 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.001124/0.001125, allocations: 187 kB / 17.34 MB, free: 5.742 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.256/1.256, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01199/0.01199, allocations: 2.604 MB / 293.8 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 87.86 kB / 406 MB, free: 29.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08356/0.08531, allocations: 50.03 MB / 456 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01424/0.09959, allocations: 14.14 MB / 470.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008863/0.1085, allocations: 4.972 MB / 475.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002352/0.1109, allocations: 87.69 kB / 475.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002904/0.1138, allocations: 1.04 MB / 476.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003464/0.1173, allocations: 1.157 MB / 477.4 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.1191, allocations: 0.7869 MB / 478.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003901/0.123, allocations: 3.168 MB / 481.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00293/0.1259, allocations: 2.655 MB / 484 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.1278, allocations: 1.382 MB / 485.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002137/0.1299, allocations: 1.607 MB / 487 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005687/0.1305, allocations: 388 kB / 487.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.1317, allocations: 0.5857 MB / 488 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006774/0.1324, allocations: 0.8725 MB / 488.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001728/0.1342, allocations: 1.661 MB / 490.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005114/0.1393, allocations: 5.117 MB / 495.6 MB, free: 3.629 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.1393, allocations: 3.984 kB / 495.6 MB, free: 3.625 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1394, allocations: 0 / 495.6 MB, free: 3.625 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000117/0.1395, allocations: 0 / 495.6 MB, free: 3.625 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 673 * Number of variables: 673 Notification: Performance of Generate backend data structure: time 0.008128/0.1476, allocations: 3.478 MB / 499.1 MB, free: 80 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1477, allocations: 12.03 kB / 499.1 MB, free: 68 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002716/0.1504, allocations: 0.5555 MB / 499.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003258/0.1537, allocations: 1.843 MB / 0.4898 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.1538, allocations: 189.5 kB / 0.49 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004229/0.1542, allocations: 260 kB / 0.4902 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005378/0.1596, allocations: 3.277 MB / 0.4934 GB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.148e-05/0.1597, allocations: 11.91 kB / 0.4934 GB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002268/0.16, allocations: 100 kB / 0.4935 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.1601, allocations: 125 kB / 0.4936 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004267/0.1644, allocations: 2.717 MB / 0.4963 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.217/0.3814, allocations: 10.81 MB / 0.5068 GB, free: 45.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00301/0.3844, allocations: 3.609 MB / 0.5104 GB, free: 43.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.3857, allocations: 0.8082 MB / 0.5112 GB, free: 43.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003836/0.3895, allocations: 2.4 MB / 0.5135 GB, free: 42.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.3896, allocations: 44.16 kB / 0.5135 GB, free: 42.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.096e-06/0.3896, allocations: 7.438 kB / 0.5136 GB, free: 42.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01146/0.401, allocations: 5.288 MB / 0.5187 GB, free: 39.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006278/0.4073, allocations: 5.177 MB / 0.5238 GB, free: 36.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/0.4094, allocations: 1.526 MB / 0.5253 GB, free: 35.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.4095, allocations: 45.64 kB / 0.5253 GB, free: 35.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005539/0.4101, allocations: 1.246 MB / 0.5265 GB, free: 34.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.4103, allocations: 408.8 kB / 0.5269 GB, free: 34.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003539/0.4107, allocations: 271.8 kB / 0.5272 GB, free: 34.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.882e-05/0.4108, allocations: 304.2 kB / 0.5275 GB, free: 34.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007806/0.4115, allocations: 0.6215 MB / 0.5281 GB, free: 33.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009169/0.4125, allocations: 1.135 MB / 0.5292 GB, free: 32.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.4141, allocations: 1.898 MB / 0.531 GB, free: 31.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.4141, allocations: 3.938 kB / 0.531 GB, free: 31.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002528/0.4167, allocations: 2.022 MB / 0.533 GB, free: 30.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.4167, allocations: 11.88 kB / 0.533 GB, free: 30.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.4167, allocations: 18.62 kB / 0.533 GB, free: 30.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002312/0.417, allocations: 92.05 kB / 0.5331 GB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.4182, allocations: 393.4 kB / 0.5335 GB, free: 30.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.44e-05/0.4183, allocations: 37.55 kB / 0.5335 GB, free: 30.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.4193, allocations: 92.81 kB / 0.5336 GB, free: 30.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.659e-05/0.4194, allocations: 70.42 kB / 0.5337 GB, free: 30.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (193): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001085/0.4205, allocations: 0.8049 MB / 0.5345 GB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.4207, allocations: 160.9 kB / 0.5346 GB, free: 29.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002598/0.4233, allocations: 1.836 MB / 0.5364 GB, free: 28.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.4233, allocations: 10.59 kB / 0.5364 GB, free: 28.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4234, allocations: 2.719 kB / 0.5364 GB, free: 28.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.4234, allocations: 10.48 kB / 0.5364 GB, free: 28.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006898/0.4303, allocations: 5.627 MB / 0.5419 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.4303, allocations: 4 kB / 0.5419 GB, free: 23.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006813/0.431, allocations: 188.1 kB / 0.5421 GB, free: 23.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009792/0.432, allocations: 393.3 kB / 0.5425 GB, free: 22.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.059e-05/0.4321, allocations: 23.98 kB / 0.5425 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005291/0.4373, allocations: 5.182 MB / 0.5476 GB, free: 17.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005286/0.4427, allocations: 5.055 MB / 0.5525 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003434/0.4461, allocations: 2.76 MB / 0.5552 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006162/0.4467, allocations: 379.1 kB / 0.5556 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/0.4469, allocations: 27.98 kB / 0.5556 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007466/0.4477, allocations: 59.94 kB / 0.5557 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.4479, allocations: 96.69 kB / 0.5558 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.755e-05/0.448, allocations: 32 kB / 0.5558 GB, free: 8.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001193/0.4492, allocations: 1.042 MB / 0.5568 GB, free: 7.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4492, allocations: 0 / 0.5568 GB, free: 7.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001542/0.4507, allocations: 0.5022 MB / 0.5573 GB, free: 7.125 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 ($STATESET1.x) * 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 (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002367/0.451, allocations: 154 kB / 0.5574 GB, free: 6.969 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001973/0.4529, allocations: 1.724 MB / 0.5591 GB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.453, allocations: 0 / 0.5591 GB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.4543, allocations: 1.122 MB / 0.5602 GB, free: 4.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.4562, allocations: 481.7 kB / 0.5607 GB, free: 3.629 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006354/0.4625, allocations: 4.722 MB / 0.5653 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/0.464, allocations: 1.916 MB / 0.5672 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004775/0.4645, allocations: 139.4 kB / 0.5673 GB, free: 12.74 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4645, allocations: 0 / 0.5673 GB, free: 12.74 MB / 398.1 MB Notification: Performance of Templates: time 0.0637/0.5282, allocations: 58.27 MB / 0.6242 GB, free: 2.523 MB / 446.1 MB make -j1 -f BLDC_BLDC.Examples.SMPM_NominalOperation.makefile (rm -f BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; mkfifo BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; head -c 1048576 < BLDC_BLDC.Examples.SMPM_NominalOperation.pipe >> ../files/BLDC_BLDC.Examples.SMPM_NominalOperation.sim & ./BLDC_BLDC.Examples.SMPM_NominalOperation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1)