Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.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: "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001309/0.001309, allocations: 190.3 kB / 16.25 MB, free: 6.637 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.302/1.302, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1134/0.1134, allocations: 2.575 MB / 292.6 MB, free: 3.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 92.14 kB / 353.6 MB, free: 5.121 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07689/0.07848, allocations: 50.05 MB / 403.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003783/0.0823, allocations: 3.022 MB / 406.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.08412, allocations: 1.282 MB / 408 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.08431, allocations: 11.94 kB / 408 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002877/0.08461, allocations: 83.42 kB / 408.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009548/0.08558, allocations: 398.4 kB / 408.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.08585, allocations: 151.9 kB / 408.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008736/0.08673, allocations: 0.7875 MB / 409.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.08716, allocations: 365.7 kB / 409.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.0875, allocations: 331 kB / 410.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003444/0.08785, allocations: 362.5 kB / 410.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.887e-05/0.08794, allocations: 60 kB / 410.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002358/0.08818, allocations: 143.9 kB / 410.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.08837, allocations: 227.3 kB / 410.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002477/0.08862, allocations: 334 kB / 411.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007151/0.08934, allocations: 0.8177 MB / 412 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.08936, allocations: 8 kB / 412 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.08937, allocations: 0 / 412 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.08938, allocations: 0 / 412 MB, free: 10.66 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.002397/0.09179, allocations: 1.173 MB / 413.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.09183, allocations: 8.031 kB / 413.2 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.09194, allocations: 94.7 kB / 413.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.09213, allocations: 95.97 kB / 413.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006424/0.09278, allocations: 0.548 MB / 413.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.09282, allocations: 37.67 kB / 414 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.439e-05/0.09292, allocations: 56.12 kB / 414 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.09426, allocations: 0.7184 MB / 414.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.09428, allocations: 3.938 kB / 414.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.51e-05/0.09434, allocations: 24 kB / 414.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.737e-05/0.0944, allocations: 37.3 kB / 414.8 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.09592, allocations: 0.6218 MB / 415.4 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003305/0.09923, allocations: 2.199 MB / 417.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.1008, allocations: 0.5573 MB / 418.2 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006176/0.1015, allocations: 264.7 kB / 418.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.1016, allocations: 178.1 kB / 418.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.1017, allocations: 38.56 kB / 418.6 MB, free: 3.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.144e-06/0.1017, allocations: 0 / 418.6 MB, free: 3.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002017/0.1037, allocations: 0.7314 MB / 419.4 MB, free: 3.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.1037, allocations: 55.41 kB / 419.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006216/0.1044, allocations: 0.6122 MB / 420 MB, free: 2.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.393e-05/0.1044, allocations: 37.7 kB / 420.1 MB, free: 2.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/0.1046, allocations: 335.7 kB / 420.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.1047, allocations: 126.1 kB / 420.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.1049, allocations: 114.2 kB / 420.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.105, allocations: 374.8 kB / 421 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006094/0.1057, allocations: 217 kB / 421.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006774/0.1063, allocations: 343.2 kB / 421.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.1075, allocations: 0.4944 MB / 422.1 MB, free: 216 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1075, allocations: 4 kB / 422.1 MB, free: 212 kB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.1401/0.2476, allocations: 0.6125 MB / 422.7 MB, free: 50.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.2477, allocations: 6.406 kB / 422.7 MB, free: 50.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.2477, allocations: 4.031 kB / 422.7 MB, free: 50.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.2477, allocations: 6.719 kB / 422.7 MB, free: 50.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.2481, allocations: 89.98 kB / 422.8 MB, free: 50.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.2481, allocations: 7.359 kB / 422.8 MB, free: 50.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/0.2485, allocations: 83.62 kB / 422.9 MB, free: 50.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.329e-05/0.2486, allocations: 26.36 kB / 422.9 MB, free: 50.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003303/0.2489, allocations: 262.3 kB / 423.1 MB, free: 50.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.2491, allocations: 62.45 kB / 423.2 MB, free: 50.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.2506, allocations: 0.6279 MB / 423.8 MB, free: 50.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.2506, allocations: 3.312 kB / 423.8 MB, free: 50.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2506, allocations: 1.969 kB / 423.8 MB, free: 50.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2506, allocations: 6.625 kB / 423.8 MB, free: 50.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.2526, allocations: 1.338 MB / 425.2 MB, free: 49.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2526, allocations: 0 / 425.2 MB, free: 49.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.2529, allocations: 64.56 kB / 425.2 MB, free: 49.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2529, allocations: 0 / 425.2 MB, free: 49.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.2529, allocations: 16.38 kB / 425.3 MB, free: 49.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2529, allocations: 0 / 425.3 MB, free: 49.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.2529, allocations: 6.938 kB / 425.3 MB, free: 49.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.2548, allocations: 0.9509 MB / 426.2 MB, free: 49.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.255, allocations: 194.4 kB / 426.4 MB, free: 49.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.553e-05/0.2551, allocations: 7.938 kB / 426.4 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004247/0.2555, allocations: 52.42 kB / 426.5 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002112/0.2557, allocations: 132 kB / 426.6 MB, free: 49.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/0.2557, allocations: 16.88 kB / 426.6 MB, free: 49.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003459/0.2561, allocations: 434.7 kB / 427 MB, free: 49.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2561, allocations: 1.969 kB / 427 MB, free: 49.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004534/0.2566, allocations: 147.4 kB / 427.2 MB, free: 49.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002101/0.2587, allocations: 1.542 MB / 428.7 MB, free: 48.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.2601, allocations: 0.6483 MB / 429.4 MB, free: 47.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2601, allocations: 0 / 429.4 MB, free: 47.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005977/0.2608, allocations: 291.4 kB / 429.7 MB, free: 47.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004722/0.2612, allocations: 65.31 kB / 429.7 MB, free: 47.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007519/0.2688, allocations: 6.103 MB / 435.8 MB, free: 44.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.2691, allocations: 0.9469 MB / 436.8 MB, free: 43.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004487/0.2696, allocations: 190 kB / 437 MB, free: 43.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.2698, allocations: 251.1 kB / 437.2 MB, free: 43.59 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2698, allocations: 0 / 437.2 MB, free: 43.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.2921, allocations: 12.52 MB / 449.7 MB, free: 42.61 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/0.2923, allocations: 181.7 kB / 449.9 MB, free: 42.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.194, allocations: 0 / 449.9 MB, free: 42.36 MB / 350.1 MB (rm -f BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; mkfifo BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoElectronicCommutator.pipe >> ../files/BLDC_BLDC.Examples.DemoElectronicCommutator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoElectronicCommutator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)