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.001179/0.001179, 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.9367/0.9367, allocations: 177.2 MB / 199.4 MB, free: 5.922 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.001143/0.001143, allocations: 156.6 kB / 256 MB, free: 13.32 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.02572/0.02572, allocations: 6.664 MB / 319 MB, free: 26.75 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_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: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.164e-05/2.357e-05, allocations: 6.219 kB / 445.5 MB, free: 37.58 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.009299/0.009323, allocations: 14.34 MB / 459.8 MB, free: 23.18 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007194/0.01652, allocations: 5.29 MB / 465.1 MB, free: 17.87 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001657/0.01817, allocations: 115.4 kB / 465.2 MB, free: 17.75 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002019/0.02019, allocations: 1.223 MB / 466.4 MB, free: 16.52 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002433/0.02263, allocations: 1.626 MB / 468 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.02391, allocations: 1.005 MB / 469 MB, free: 13.88 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002841/0.02675, allocations: 4.972 MB / 474 MB, free: 8.883 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/0.02855, allocations: 1.921 MB / 475.9 MB, free: 6.898 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002604/0.03115, allocations: 3.181 MB / 479.1 MB, free: 3.711 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/0.03266, allocations: 2.065 MB / 481.2 MB, free: 1.641 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003582/0.03301, allocations: 0.5742 MB / 481.8 MB, free: 1.066 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007831/0.0338, allocations: 0.7886 MB / 482.5 MB, free: 284 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006647/0.03446, allocations: 1.324 MB / 483.9 MB, free: 14.95 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.0356, allocations: 1.668 MB / 485.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004812/0.04042, allocations: 7.607 MB / 493.1 MB, free: 5.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.04042, allocations: 0 / 493.1 MB, free: 5.648 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.04042, allocations: 0 / 493.1 MB, free: 5.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.69e-05/0.04047, allocations: 0 / 493.1 MB, free: 5.648 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.006542/0.04701, allocations: 4.999 MB / 498.1 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/0.04707, allocations: 8.031 kB / 498.2 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006627/0.04774, allocations: 0.5609 MB / 498.7 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003064/0.0508, allocations: 0.982 MB / 499.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00506/0.05586, allocations: 2.793 MB / 0.4907 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.05607, allocations: 279.8 kB / 0.491 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001057/0.05713, allocations: 368.3 kB / 0.4913 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007945/0.06507, allocations: 4.935 MB / 0.4961 GB, free: 6.539 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-05/0.06515, allocations: 4 kB / 0.4962 GB, free: 6.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003875/0.06553, allocations: 151.9 kB / 0.4963 GB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.06566, allocations: 155.3 kB / 0.4964 GB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006277/0.07194, allocations: 4.042 MB / 0.5004 GB, free: 2.188 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0199/0.09184, allocations: 13.82 MB / 0.5139 GB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003253/0.09509, allocations: 2.732 MB / 0.5166 GB, free: 1.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002278/0.09737, allocations: 1.822 MB / 0.5183 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006089/0.1035, allocations: 3.694 MB / 0.5219 GB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.1035, allocations: 51.88 kB / 0.522 GB, free: 11.72 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 2.735e-06/0.1035, allocations: 0 / 0.522 GB, free: 11.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.01067/0.1142, allocations: 6.218 MB / 0.5281 GB, free: 5.457 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.1142, allocations: 76.66 kB / 0.5281 GB, free: 5.371 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003279/0.1175, allocations: 2.259 MB / 0.5303 GB, free: 3.082 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.1177, allocations: 49.7 kB / 0.5304 GB, free: 3.027 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009413/0.1186, allocations: 1.787 MB / 0.5321 GB, free: 1.223 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003776/0.119, allocations: 0.5694 MB / 0.5327 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000433/0.1194, allocations: 408 kB / 0.5331 GB, free: 248 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002262/0.1196, allocations: 305.1 kB / 0.5334 GB, free: 15.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.1207, allocations: 0.8398 MB / 0.5342 GB, free: 15.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.1219, allocations: 1.627 MB / 0.5358 GB, free: 13.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002425/0.1244, allocations: 2.616 MB / 0.5383 GB, free: 10.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.75e-05/0.1244, allocations: 8 kB / 0.5383 GB, free: 10.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.003756/0.1281, allocations: 3.045 MB / 0.5413 GB, free: 7.086 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.1282, allocations: 16 kB / 0.5413 GB, free: 7.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/0.1282, allocations: 24 kB / 0.5414 GB, free: 7.047 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006015/0.1288, allocations: 349.4 kB / 0.5417 GB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009905/0.1298, allocations: 0.4993 MB / 0.5422 GB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004002/0.1338, allocations: 5.021 MB / 0.5471 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.1352, allocations: 104 kB / 0.5472 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.1353, allocations: 108 kB / 0.5473 GB, free: 0.7461 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.001883/0.1372, allocations: 1.122 MB / 0.5484 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003595/0.1375, allocations: 254.3 kB / 0.5486 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002871/0.1404, allocations: 2.321 MB / 0.5509 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.1404, allocations: 16 kB / 0.5509 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.1404, allocations: 11.98 kB / 0.5509 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.1405, allocations: 3.984 kB / 0.5509 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007303/0.1478, allocations: 5.295 MB / 0.5561 GB, free: 7.605 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1478, allocations: 0 / 0.5561 GB, free: 7.605 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006315/0.1484, allocations: 263.7 kB / 0.5563 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005639/0.149, allocations: 378.2 kB / 0.5567 GB, free: 6.969 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.32e-05/0.149, allocations: 32.17 kB / 0.5567 GB, free: 6.938 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1869/0.3359, allocations: 7.025 MB / 0.5636 GB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3359, allocations: 2.844 kB / 0.5636 GB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004897/0.3408, allocations: 3.441 MB / 0.567 GB, free: 114.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/0.342, allocations: 445.5 kB / 0.5674 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002992/0.3423, allocations: 29.72 kB / 0.5674 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008464/0.3432, allocations: 68.2 kB / 0.5675 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.3435, allocations: 123.4 kB / 0.5676 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.433e-05/0.3436, allocations: 47.81 kB / 0.5676 GB, free: 114.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001825/0.3454, allocations: 1.494 MB / 0.5691 GB, free: 114.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3454, allocations: 3.969 kB / 0.5691 GB, free: 114.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002235/0.3476, allocations: 0.656 MB / 0.5697 GB, free: 114.1 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.003746/0.3514, allocations: 4.055 MB / 0.5737 GB, free: 112.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002696/0.3541, allocations: 2.339 MB / 0.576 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.3541, allocations: 11.12 kB / 0.576 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.3554, 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.001888/0.3573, allocations: 0.5728 MB / 0.5779 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03312/0.3904, allocations: 23.76 MB / 0.6011 GB, free: 86.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001421/0.3919, allocations: 1.983 MB / 0.603 GB, free: 84.32 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001282/0.3931, allocations: 0.5161 MB / 0.6035 GB, free: 83.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009473/0.3941, allocations: 1.367 MB / 0.6049 GB, free: 82.43 MB / 426.7 MB Notification: Performance of SimCode: time 1.963e-06/0.3941, allocations: 2.625 kB / 0.6049 GB, free: 82.43 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07963/0.4737, allocations: 61.71 MB / 0.6651 GB, free: 21.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.005/9.479, allocations: 6.906 kB / 0.6651 GB, free: 21.29 MB / 426.7 MB " [Timeout remaining time 650] (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: 11.66592826321721] Failed to read output from testmodel.py, exit status != 0: 9.592729828320444 9.600456087 9.558346101 Calling exit ...