Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BLDC with version 1.9.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo) Running command: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01889/0.01889, allocations: 2.626 MB / 17.88 MB, free: 3.566 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 181.4 kB / 19.36 MB, free: 2.328 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 225.7 MB / 246.4 MB, free: 6.898 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007344/0.0007344, allocations: 100.8 kB / 298.2 MB, free: 6.855 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004327/0.0004328, allocations: 12 kB / 359.9 MB, free: 9.066 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2056, allocations: 51.01 MB / 410.9 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.002339/0.208, allocations: 2.553 MB / 413.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.2098, allocations: 1.78 MB / 415.3 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.21, allocations: 7.938 kB / 415.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002561/0.2102, allocations: 79.48 kB / 415.4 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008862/0.2111, allocations: 0.6073 MB / 416 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.2114, allocations: 151.9 kB / 416.1 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007904/0.2122, allocations: 0.846 MB / 417 MB, free: 21.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003345/0.2125, allocations: 333.4 kB / 417.3 MB, free: 21.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.2127, allocations: 203 kB / 417.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002639/0.213, allocations: 298.6 kB / 417.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.213, allocations: 19.94 kB / 417.8 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.2132, allocations: 99.94 kB / 417.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.2134, allocations: 183.3 kB / 418.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.2136, allocations: 307.8 kB / 418.4 MB, free: 20.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005165/0.2141, allocations: 0.7844 MB / 419.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2141, allocations: 0 / 419.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2141, allocations: 0 / 419.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2141, allocations: 0 / 419.2 MB, free: 19.34 MB / 298.7 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.002114/0.2162, allocations: 1.123 MB / 420.3 MB, free: 18.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.2163, allocations: 12.03 kB / 420.3 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.2164, allocations: 91.88 kB / 420.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007357/0.2172, allocations: 0.6224 MB / 421 MB, free: 17.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.2172, allocations: 41.67 kB / 421 MB, free: 17.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.317e-05/0.2173, allocations: 48.38 kB / 421.1 MB, free: 17.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.2184, allocations: 0.7222 MB / 421.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.2184, allocations: 4 kB / 421.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.855e-05/0.2185, allocations: 16 kB / 421.8 MB, free: 16.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.525e-05/0.2186, allocations: 41.23 kB / 421.9 MB, free: 16.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.2198, allocations: 0.6296 MB / 422.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002952/0.2228, allocations: 2.273 MB / 424.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/0.2242, allocations: 0.5649 MB / 425.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005535/0.2248, allocations: 256.7 kB / 425.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001369/0.2249, allocations: 174.1 kB / 425.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.225, allocations: 38.56 kB / 425.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.494e-06/0.225, allocations: 112 / 425.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.001771/0.2267, allocations: 0.7276 MB / 426.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.2268, allocations: 59.41 kB / 426.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007569/0.2275, allocations: 0.7254 MB / 427.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.2276, allocations: 33.7 kB / 427.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.2277, allocations: 327.9 kB / 427.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.71e-05/0.2278, allocations: 134.1 kB / 427.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-05/0.2279, allocations: 8 kB / 427.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.805e-05/0.2279, allocations: 374.8 kB / 428.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005167/0.2285, allocations: 221 kB / 428.4 MB, free: 9.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005299/0.229, allocations: 335.2 kB / 428.7 MB, free: 9.441 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009346/0.23, allocations: 0.4907 MB / 429.2 MB, free: 8.898 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.23, allocations: 0 / 429.2 MB, free: 8.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001219/0.2312, allocations: 0.6192 MB / 429.8 MB, free: 8.273 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.2312, allocations: 5.875 kB / 429.8 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2312, allocations: 4 kB / 429.8 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.2313, allocations: 12.45 kB / 429.8 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002803/0.2315, allocations: 87.83 kB / 429.9 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.2316, allocations: 8 kB / 429.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004617/0.232, allocations: 123.3 kB / 430.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.2321, allocations: 23.98 kB / 430.1 MB, free: 8.016 MB / 298.7 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 (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],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.0002571/0.2323, allocations: 267.8 kB / 430.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.2325, allocations: 63.19 kB / 430.4 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.2338, allocations: 0.6204 MB / 431 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.2338, allocations: 4 kB / 431 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2338, allocations: 0 / 431 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.2338, allocations: 3.984 kB / 431 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.2358, allocations: 1.36 MB / 432.4 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2358, allocations: 0 / 432.4 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002319/0.2361, allocations: 59.91 kB / 432.4 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2361, allocations: 4 kB / 432.4 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.2362, allocations: 23.92 kB / 432.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.2362, allocations: 0 / 432.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2362, allocations: 3.938 kB / 432.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.238, allocations: 0.949 MB / 433.4 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002199/0.2382, allocations: 220.2 kB / 433.6 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.634e-05/0.2383, allocations: 4 kB / 433.6 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004757/0.2388, allocations: 103.9 kB / 433.7 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/0.239, allocations: 119.8 kB / 433.9 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.2391, allocations: 15.98 kB / 433.9 MB, free: 4.105 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005781/0.2396, allocations: 0.5261 MB / 434.4 MB, free: 3.582 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2397, allocations: 0 / 434.4 MB, free: 3.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004299/0.2401, allocations: 159.6 kB / 434.6 MB, free: 3.426 MB / 298.7 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.0002104/0.2403, allocations: 148.9 kB / 434.7 MB, free: 3.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.2415, allocations: 0.5419 MB / 435.2 MB, free: 2.727 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.2415, allocations: 0.9375 kB / 435.2 MB, free: 2.727 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000551/0.242, allocations: 287.7 kB / 435.5 MB, free: 2.445 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.2425, allocations: 66.3 kB / 435.6 MB, free: 2.375 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.2443, allocations: 1.517 MB / 437.1 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.2447, allocations: 0.9383 MB / 438 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004855/0.2452, allocations: 188.5 kB / 438.2 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/0.2453, allocations: 59.41 kB / 438.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2453, allocations: 0 / 438.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of Templates: time 0.01206/0.2574, allocations: 6.727 MB / 445 MB, free: 8.91 MB / 314.7 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile (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 & ./BLDC_BLDC.Examples.DemoElectronicCommutator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)