Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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.001399/0.001399, allocations: 108.4 kB / 16.46 MB, free: 6.453 MB / 14.72 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 1.51/1.51, allocations: 230.6 MB / 249.8 MB, free: 9.219 MB / 206.1 MB " [Timeout remaining time 178] 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.001769/0.001769, allocations: 214.9 kB / 306 MB, free: 4.273 MB / 238.1 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.04548/0.04548, allocations: 8.914 MB / 371 MB, free: 3.402 MB / 302.1 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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002445/0.002445, allocations: 88.08 kB / 495.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1154, allocations: 55.58 MB / 0.5384 GB, free: 6.406 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.02185/0.1372, allocations: 16.53 MB / 0.5546 GB, free: 5.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.1502, allocations: 5.59 MB / 0.56 GB, free: 196 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003678/0.1539, allocations: 111.4 kB / 0.5601 GB, free: 84 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004489/0.1584, allocations: 1.266 MB / 0.5614 GB, free: 14.8 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.006627/0.165, allocations: 1.588 MB / 0.5629 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00348/0.1685, allocations: 1.028 MB / 0.5639 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007814/0.1763, allocations: 4.748 MB / 0.5686 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00564/0.1819, allocations: 2.463 MB / 0.571 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005556/0.1875, allocations: 2.173 MB / 0.5731 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005893/0.1934, allocations: 2.596 MB / 0.5756 GB, free: 104 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002079/0.1955, allocations: 0.5704 MB / 0.5762 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003416/0.1989, allocations: 0.8044 MB / 0.577 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00244/0.2013, allocations: 1.301 MB / 0.5782 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005139/0.2065, allocations: 2.45 MB / 0.5806 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01271/0.2192, allocations: 7.572 MB / 0.588 GB, free: 3.363 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.2192, allocations: 0 / 0.588 GB, free: 3.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.2192, allocations: 4 kB / 0.588 GB, free: 3.359 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003225/0.2195, allocations: 0 / 0.588 GB, free: 3.359 MB / 398.1 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.01891/0.2384, allocations: 5.121 MB / 0.593 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/0.2385, allocations: 12.03 kB / 0.593 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002188/0.2407, allocations: 0.5531 MB / 0.5936 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006662/0.2473, allocations: 0.9858 MB / 0.5945 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007039/0.2544, allocations: 2.885 MB / 0.5974 GB, free: 9.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002863/0.2546, allocations: 275.8 kB / 0.5976 GB, free: 9.391 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008796/0.2555, allocations: 371.9 kB / 0.598 GB, free: 9.027 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00935/0.2649, allocations: 4.78 MB / 0.6026 GB, free: 4.203 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.24e-05/0.265, allocations: 3.953 kB / 0.6026 GB, free: 4.199 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003781/0.2653, allocations: 156 kB / 0.6028 GB, free: 4.047 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001701/0.2655, allocations: 151.4 kB / 0.6029 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00802/0.2735, allocations: 4.054 MB / 0.6069 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03/0.3035, allocations: 15.95 MB / 0.6225 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008665/0.3122, allocations: 7.038 MB / 0.6293 GB, free: 7.348 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004386/0.3166, allocations: 1.811 MB / 0.6311 GB, free: 5.539 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009057/0.3256, allocations: 4.73 MB / 0.6357 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/0.3257, allocations: 43.88 kB / 0.6358 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 2.825e-06/0.3257, allocations: 0 / 0.6358 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01533/0.341, allocations: 6.696 MB / 0.6423 GB, free: 9.703 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.3411, allocations: 72.72 kB / 0.6424 GB, free: 9.621 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003503/0.3446, allocations: 2.213 MB / 0.6445 GB, free: 7.379 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002036/0.3448, allocations: 53.7 kB / 0.6446 GB, free: 7.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001456/0.3462, allocations: 1.795 MB / 0.6464 GB, free: 5.508 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005827/0.3468, allocations: 0.5733 MB / 0.6469 GB, free: 4.93 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006393/0.3474, allocations: 408 kB / 0.6473 GB, free: 4.523 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3476, allocations: 305.1 kB / 0.6476 GB, free: 4.223 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/0.3491, allocations: 0.8438 MB / 0.6484 GB, free: 3.375 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/0.3512, allocations: 1.601 MB / 0.65 GB, free: 1.422 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2176/0.5689, allocations: 2.604 MB / 0.6525 GB, free: 98.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.279e-05/0.5689, allocations: 7.734 kB / 0.6525 GB, free: 98.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006433/0.5753, allocations: 3.128 MB / 0.6556 GB, free: 97.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.094e-05/0.5754, allocations: 15.66 kB / 0.6556 GB, free: 97.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.442e-05/0.5754, allocations: 24.22 kB / 0.6556 GB, free: 97.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.5765, allocations: 353.3 kB / 0.656 GB, free: 97.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001975/0.5784, allocations: 0.4953 MB / 0.6564 GB, free: 97.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004885/0.5833, allocations: 5.275 MB / 0.6616 GB, free: 93.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002004/0.5853, allocations: 108.3 kB / 0.6617 GB, free: 93.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002618/0.5856, allocations: 104.3 kB / 0.6618 GB, free: 93.3 MB / 462.1 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.001831/0.5874, allocations: 1.132 MB / 0.6629 GB, free: 92.68 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004559/0.5879, allocations: 246.7 kB / 0.6631 GB, free: 92.68 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004002/0.5919, allocations: 2.475 MB / 0.6656 GB, free: 91.51 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/0.5919, allocations: 15.22 kB / 0.6656 GB, free: 91.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.5919, allocations: 4.5 kB / 0.6656 GB, free: 91.51 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.816e-05/0.5919, allocations: 8.344 kB / 0.6656 GB, free: 91.51 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008317/0.6002, allocations: 5.821 MB / 0.6713 GB, free: 88.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.443e-06/0.6002, allocations: 11.53 kB / 0.6713 GB, free: 88.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.6014, allocations: 268.6 kB / 0.6715 GB, free: 88.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00087/0.6022, allocations: 370.9 kB / 0.6719 GB, free: 88.66 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.905e-05/0.6023, allocations: 39.8 kB / 0.6719 GB, free: 88.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005434/0.6078, allocations: 7.408 MB / 0.6792 GB, free: 82.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.6078, allocations: 18.59 kB / 0.6792 GB, free: 82.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/0.6123, allocations: 3.59 MB / 0.6827 GB, free: 80.93 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009178/0.6132, allocations: 0.5044 MB / 0.6832 GB, free: 80.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002791/0.6135, allocations: 27.88 kB / 0.6832 GB, free: 80.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.6145, allocations: 67.23 kB / 0.6833 GB, free: 80.56 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002488/0.6148, allocations: 121.1 kB / 0.6834 GB, free: 80.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.593e-05/0.6149, allocations: 45.58 kB / 0.6834 GB, free: 80.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001848/0.6167, allocations: 1.496 MB / 0.6849 GB, free: 79.91 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6167, allocations: 4 kB / 0.6849 GB, free: 79.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002346/0.619, allocations: 0.6561 MB / 0.6855 GB, free: 79.65 MB / 462.1 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.004606/0.6237, allocations: 4.204 MB / 0.6896 GB, free: 75.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003345/0.627, allocations: 2.419 MB / 0.692 GB, free: 72.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.627, allocations: 1.875 kB / 0.692 GB, free: 72.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001696/0.6287, allocations: 1.375 MB / 0.6933 GB, free: 71.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/0.6312, allocations: 0.5894 MB / 0.6939 GB, free: 70.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03301/0.6642, allocations: 23.92 MB / 0.7173 GB, free: 45.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002234/0.6665, allocations: 2.523 MB / 0.7197 GB, free: 43.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002123/0.6686, allocations: 0.5161 MB / 0.7202 GB, free: 42.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002153/0.6707, allocations: 1.366 MB / 0.7216 GB, free: 41.52 MB / 462.1 MB Notification: Performance of SimCode: time 1.833e-06/0.6707, allocations: 0 / 0.7216 GB, free: 41.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1235/0.7943, allocations: 59.06 MB / 0.7792 GB, free: 14.99 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/15.07, allocations: 0 / 0.7792 GB, free: 14.99 MB / 494.1 MB " [Timeout remaining time 645] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2_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_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.189429923004354] Failed to read output from testmodel.py, exit status != 0: 15.189451933998498 15.206886257 14.984110445 Calling exit ...