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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008364/0.0008364, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008634/0.0008634, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9193/0.9193, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01431/0.01431, allocations: 1.977 MB / 261.2 MB, free: 11.26 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BLDC.Examples.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 384.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.733e-05/1.908e-05, allocations: 2.281 kB / 384.3 MB, free: 13.53 MB / 362.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01041/0.01043, allocations: 12.93 MB / 397.2 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.007727/0.01815, allocations: 4.93 MB / 402.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001997/0.02015, allocations: 119.2 kB / 402.2 MB, free: 11.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002188/0.02234, allocations: 1.04 MB / 403.3 MB, free: 10.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002534/0.02487, allocations: 1.207 MB / 404.5 MB, free: 9.215 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.02612, allocations: 0.7992 MB / 405.3 MB, free: 8.414 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003288/0.02941, allocations: 3.356 MB / 408.6 MB, free: 5.047 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.03117, allocations: 1.43 MB / 410.1 MB, free: 3.551 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002132/0.0333, allocations: 2.097 MB / 412.2 MB, free: 1.449 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001419/0.03472, allocations: 1.34 MB / 413.5 MB, free: 108 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003591/0.03508, allocations: 388 kB / 413.9 MB, free: 15.72 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007447/0.03583, allocations: 0.5854 MB / 414.5 MB, free: 15.14 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004873/0.03631, allocations: 0.8918 MB / 415.4 MB, free: 14.25 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008305/0.03714, allocations: 1.126 MB / 416.5 MB, free: 13.12 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003682/0.04083, allocations: 5.2 MB / 421.7 MB, free: 7.902 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.04083, allocations: 0 / 421.7 MB, free: 7.902 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.04083, allocations: 0 / 421.7 MB, free: 7.902 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.957e-05/0.0409, allocations: 0 / 421.7 MB, free: 7.902 MB / 394.7 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.00479/0.04569, allocations: 3.485 MB / 425.2 MB, free: 4.363 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.04574, allocations: 8.031 kB / 425.2 MB, free: 4.355 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003293/0.04607, allocations: 371.3 kB / 425.5 MB, free: 3.984 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001356/0.04742, allocations: 0.5573 MB / 426.1 MB, free: 3.426 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002068/0.04949, allocations: 1.795 MB / 427.9 MB, free: 1.578 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.402e-05/0.04958, allocations: 189.5 kB / 428.1 MB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002572/0.04984, allocations: 252.3 kB / 428.3 MB, free: 1.145 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003599/0.05344, allocations: 3.368 MB / 431.7 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.412e-05/0.05348, allocations: 0 / 431.7 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001683/0.05365, allocations: 108 kB / 431.8 MB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.548e-05/0.05374, allocations: 121 kB / 431.9 MB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.05676, allocations: 2.717 MB / 434.6 MB, free: 10.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009422/0.06618, allocations: 9.699 MB / 444.3 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.177/0.2432, allocations: 1.4 MB / 445.7 MB, free: 93.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009407/0.2441, allocations: 0.7677 MB / 446.5 MB, free: 93.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002602/0.2467, allocations: 2.049 MB / 448.6 MB, free: 92.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.2467, allocations: 47.66 kB / 448.6 MB, free: 92.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 2.294e-06/0.2467, allocations: 1.906 kB / 448.6 MB, free: 92.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=117): time 0.005913/0.2526, allocations: 5.184 MB / 453.8 MB, free: 90.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003742/0.2564, allocations: 4.997 MB / 458.8 MB, free: 87.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.2578, allocations: 1.564 MB / 460.4 MB, free: 87.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.93e-05/0.2579, allocations: 47.48 kB / 460.4 MB, free: 87.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004541/0.2583, allocations: 1.286 MB / 461.7 MB, free: 86.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.2585, allocations: 417.2 kB / 462.1 MB, free: 85.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002539/0.2587, allocations: 274.3 kB / 462.4 MB, free: 85.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.073e-05/0.2588, allocations: 301.1 kB / 462.7 MB, free: 85.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005275/0.2593, allocations: 0.6117 MB / 463.3 MB, free: 85.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006575/0.2599, allocations: 1.168 MB / 464.4 MB, free: 84.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.2612, allocations: 1.891 MB / 466.3 MB, free: 83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.2612, allocations: 5.969 kB / 466.3 MB, free: 83 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.001805/0.263, allocations: 2.038 MB / 468.4 MB, free: 82.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2631, allocations: 14.33 kB / 468.4 MB, free: 82.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.2631, allocations: 15.75 kB / 468.4 MB, free: 82.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.2632, allocations: 94.34 kB / 468.5 MB, free: 82.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007144/0.264, allocations: 391.5 kB / 468.9 MB, free: 82.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.264, allocations: 38.8 kB / 468.9 MB, free: 82.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000652/0.2646, allocations: 88.56 kB / 469 MB, free: 81.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-05/0.2647, allocations: 75.67 kB / 469.1 MB, free: 81.97 MB / 410.7 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.0008889/0.2656, allocations: 0.8077 MB / 469.9 MB, free: 81.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.2657, allocations: 180.1 kB / 470.1 MB, free: 81.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001777/0.2675, allocations: 1.832 MB / 471.9 MB, free: 80.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2675, allocations: 12.75 kB / 471.9 MB, free: 80.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2675, allocations: 0 / 471.9 MB, free: 80.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.2675, allocations: 6.797 kB / 471.9 MB, free: 80.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00497/0.2725, allocations: 5.209 MB / 477.1 MB, free: 78.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2725, allocations: 3.219 kB / 477.1 MB, free: 78.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/0.2729, allocations: 184.2 kB / 477.3 MB, free: 78.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006161/0.2735, allocations: 394.6 kB / 477.7 MB, free: 78.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.493e-05/0.2735, allocations: 28.38 kB / 477.7 MB, free: 78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004238/0.2778, allocations: 5.003 MB / 482.7 MB, free: 74.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004128/0.2819, allocations: 4.886 MB / 487.6 MB, free: 71.83 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002794/0.2847, allocations: 2.748 MB / 490.3 MB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000539/0.2852, allocations: 322.9 kB / 490.7 MB, free: 70.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.2854, allocations: 19.69 kB / 490.7 MB, free: 70.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.2858, allocations: 60.2 kB / 490.7 MB, free: 70.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.2859, allocations: 106.2 kB / 490.8 MB, free: 70.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.015e-05/0.286, allocations: 38.53 kB / 490.9 MB, free: 70.22 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001132/0.2871, allocations: 1.042 MB / 491.9 MB, free: 69.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2871, allocations: 1.188 kB / 491.9 MB, free: 69.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001327/0.2885, allocations: 0.5119 MB / 492.4 MB, free: 69.76 MB / 410.7 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.002835/0.2913, allocations: 3.362 MB / 495.8 MB, free: 67.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001533/0.2928, allocations: 1.495 MB / 497.3 MB, free: 67.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.2928, allocations: 0 / 497.3 MB, free: 67.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009301/0.2938, allocations: 0.985 MB / 498.3 MB, free: 66.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.2949, allocations: 487.5 kB / 498.8 MB, free: 66.67 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.3115, allocations: 16.9 MB / 0.5036 GB, free: 51.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.3128, allocations: 1.402 MB / 0.5049 GB, free: 50.72 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001086/0.3139, allocations: 383.4 kB / 0.5053 GB, free: 50.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007671/0.3146, allocations: 0.9666 MB / 0.5062 GB, free: 49.55 MB / 410.7 MB Notification: Performance of SimCode: time 1.363e-06/0.3146, allocations: 0 / 0.5062 GB, free: 49.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05394/0.3686, allocations: 49.08 MB / 0.5542 GB, free: 2.312 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.748/10.12, allocations: 4.062 kB / 0.5542 GB, free: 2.309 MB / 410.7 MB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_SMPM_NominalOperation_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_SMPM_NominalOperation.fmu > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.975409498438239] Failed to read output from testmodel.py, exit status != 0: 10.230158453807235 10.238270209 10.195628494 Calling exit ...