Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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.0006771/0.0006771, 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/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.9206/0.9206, allocations: 177.1 MB / 199.4 MB, free: 5.938 MB / 186.7 MB " [Timeout remaining time 179] 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.001099/0.001099, allocations: 152.6 kB / 256 MB, free: 13.34 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02599/0.02599, allocations: 6.664 MB / 319 MB, free: 26.78 MB / 266.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 445.4 MB, free: 37.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.424e-05/1.545e-05, allocations: 6.219 kB / 445.4 MB, free: 37.47 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.008805/0.008821, allocations: 14.34 MB / 459.8 MB, free: 23.07 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005819/0.01464, allocations: 5.286 MB / 465.1 MB, free: 17.76 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009653/0.01561, allocations: 119.3 kB / 465.2 MB, free: 17.64 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001616/0.01722, allocations: 1.219 MB / 466.4 MB, free: 16.42 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001888/0.01911, allocations: 1.625 MB / 468 MB, free: 14.79 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.02024, allocations: 1.008 MB / 469 MB, free: 13.78 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002106/0.02234, allocations: 4.972 MB / 474 MB, free: 8.777 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001365/0.02371, allocations: 1.917 MB / 475.9 MB, free: 6.797 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002054/0.02576, allocations: 3.185 MB / 479.1 MB, free: 3.605 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001268/0.02703, allocations: 2.057 MB / 481.2 MB, free: 1.543 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003411/0.02737, allocations: 0.5742 MB / 481.7 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007937/0.02816, allocations: 0.7964 MB / 482.5 MB, free: 176 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007313/0.02889, allocations: 1.328 MB / 483.9 MB, free: 14.84 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.02999, allocations: 1.66 MB / 485.5 MB, free: 13.17 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004619/0.03461, allocations: 7.619 MB / 493.1 MB, free: 5.531 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.03462, allocations: 0 / 493.1 MB, free: 5.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.03462, allocations: 0 / 493.1 MB, free: 5.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.05e-05/0.03466, allocations: 0 / 493.1 MB, free: 5.531 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.006378/0.04104, allocations: 4.995 MB / 498.1 MB, free: 488 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.04109, allocations: 12.03 kB / 498.2 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000606/0.04169, allocations: 0.5532 MB / 498.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002575/0.04427, allocations: 0.9857 MB / 499.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003214/0.04748, allocations: 2.786 MB / 0.4907 GB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.04763, allocations: 283.8 kB / 0.491 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003668/0.04799, allocations: 368.3 kB / 0.4913 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005667/0.05366, allocations: 4.935 MB / 0.4961 GB, free: 6.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.194e-05/0.05371, allocations: 0 / 0.4961 GB, free: 6.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002494/0.05396, allocations: 152 kB / 0.4963 GB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/0.05406, allocations: 159.3 kB / 0.4964 GB, free: 6.125 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004817/0.05888, allocations: 4.042 MB / 0.5004 GB, free: 2.078 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/0.07364, allocations: 13.82 MB / 0.5139 GB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/0.07668, allocations: 2.725 MB / 0.5165 GB, free: 1.238 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002094/0.07878, allocations: 1.822 MB / 0.5183 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004854/0.08363, allocations: 3.702 MB / 0.5219 GB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.08366, allocations: 43.88 kB / 0.522 GB, free: 11.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 2.364e-06/0.08366, allocations: 0 / 0.522 GB, free: 11.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.008547/0.09221, allocations: 6.229 MB / 0.5281 GB, free: 5.348 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.09225, allocations: 68.72 kB / 0.5281 GB, free: 5.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002185/0.09444, allocations: 2.259 MB / 0.5303 GB, free: 2.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.502e-05/0.09451, allocations: 57.7 kB / 0.5304 GB, free: 2.918 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008377/0.09535, allocations: 1.787 MB / 0.5321 GB, free: 1.113 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003161/0.09566, allocations: 0.5655 MB / 0.5327 GB, free: 0.543 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004139/0.09608, allocations: 408 kB / 0.5331 GB, free: 140 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.936e-05/0.09617, allocations: 301.1 kB / 0.5334 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.09727, allocations: 0.8398 MB / 0.5342 GB, free: 15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.0985, allocations: 1.638 MB / 0.5358 GB, free: 13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/0.1007, allocations: 2.612 MB / 0.5383 GB, free: 10.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.1008, allocations: 8 kB / 0.5383 GB, free: 10.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.003329/0.1041, allocations: 3.041 MB / 0.5413 GB, free: 6.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.1041, allocations: 19.94 kB / 0.5413 GB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/0.1041, allocations: 24 kB / 0.5414 GB, free: 6.938 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00056/0.1047, allocations: 346.8 kB / 0.5417 GB, free: 6.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009595/0.1056, allocations: 0.4991 MB / 0.5422 GB, free: 6.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003649/0.1093, allocations: 5.021 MB / 0.5471 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009815/0.1103, allocations: 108 kB / 0.5472 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.1104, allocations: 99.98 kB / 0.5473 GB, free: 0.6445 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(2,13,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001693/0.1121, allocations: 1.13 MB / 0.5484 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.1123, allocations: 250.4 kB / 0.5486 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/0.1149, allocations: 2.313 MB / 0.5509 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.1149, allocations: 19.94 kB / 0.5509 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1149, allocations: 11.98 kB / 0.5509 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.1149, allocations: 7.984 kB / 0.5509 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005916/0.1208, allocations: 5.299 MB / 0.5561 GB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.1208, allocations: 4 kB / 0.5561 GB, free: 7.492 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006089/0.1214, allocations: 267.6 kB / 0.5563 GB, free: 7.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005327/0.122, allocations: 362.5 kB / 0.5567 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.906e-05/0.122, allocations: 47.86 kB / 0.5567 GB, free: 6.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1818/0.3038, allocations: 7.019 MB / 0.5636 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3038, allocations: 1.188 kB / 0.5636 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004075/0.3079, allocations: 3.443 MB / 0.567 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007292/0.3086, allocations: 441 kB / 0.5674 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.3088, allocations: 33.38 kB / 0.5674 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005901/0.3094, allocations: 61.41 kB / 0.5675 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.3096, allocations: 135.2 kB / 0.5676 GB, free: 114.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.658e-05/0.3097, allocations: 47.39 kB / 0.5676 GB, free: 114.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001461/0.3111, allocations: 1.488 MB / 0.5691 GB, free: 114 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.3111, allocations: 3.469 kB / 0.5691 GB, free: 114 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001386/0.3125, allocations: 0.6609 MB / 0.5697 GB, free: 114 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003147/0.3157, allocations: 4.045 MB / 0.5737 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002196/0.3179, allocations: 2.341 MB / 0.576 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3179, allocations: 3.906 kB / 0.576 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3189, allocations: 1.36 MB / 0.5773 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/0.3203, allocations: 0.5832 MB / 0.5779 GB, free: 109.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02495/0.3453, allocations: 23.76 MB / 0.6011 GB, free: 86.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.3465, allocations: 1.987 MB / 0.603 GB, free: 84.27 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009424/0.3474, allocations: 0.5122 MB / 0.6035 GB, free: 83.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009537/0.3484, allocations: 1.371 MB / 0.6049 GB, free: 82.38 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3484, allocations: 0 / 0.6049 GB, free: 82.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06624/0.4146, allocations: 61.7 MB / 0.6651 GB, free: 21.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.723/9.137, allocations: 4.438 kB / 0.6651 GB, free: 21.25 MB / 426.7 MB " [Timeout remaining time 651] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3_res.csv --start-time 0 --stop-time 0.3 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.000100033 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.293113965541124] Failed to read output from testmodel.py, exit status != 0: 9.250182182528079 9.256825811 9.220884452 Calling exit ...