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.0009371/0.0009371, 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.8954/0.8954, allocations: 177.1 MB / 199.4 MB, free: 5.93 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.001196/0.001196, allocations: 160.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.02276/0.02276, allocations: 6.666 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.954e-06/1.954e-06, allocations: 0 / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.427e-05, allocations: 2.281 kB / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.009141/0.009166, allocations: 14.34 MB / 459.8 MB, free: 23.19 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.02002, allocations: 5.29 MB / 465.1 MB, free: 17.88 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00299/0.02301, allocations: 119.3 kB / 465.2 MB, free: 17.76 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002856/0.02587, allocations: 1.219 MB / 466.4 MB, free: 16.54 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004255/0.03012, allocations: 1.622 MB / 468 MB, free: 14.9 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.03186, allocations: 1.023 MB / 469 MB, free: 13.88 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003835/0.03569, allocations: 4.967 MB / 474 MB, free: 8.891 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00204/0.03773, allocations: 1.917 MB / 475.9 MB, free: 6.91 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004949/0.04268, allocations: 3.181 MB / 479.1 MB, free: 3.723 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002562/0.04524, allocations: 2.069 MB / 481.2 MB, free: 1.648 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008338/0.04608, allocations: 0.5703 MB / 481.8 MB, free: 1.078 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001941/0.04802, allocations: 0.7886 MB / 482.5 MB, free: 296 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008984/0.04892, allocations: 1.324 MB / 483.9 MB, free: 14.96 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002526/0.05144, allocations: 1.668 MB / 485.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007225/0.05867, allocations: 7.611 MB / 493.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.05867, allocations: 0 / 493.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.05868, allocations: 0 / 493.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002319/0.05891, allocations: 0 / 493.1 MB, free: 5.656 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.01025/0.06916, allocations: 4.999 MB / 498.1 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.0692, allocations: 11.97 kB / 498.2 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007374/0.06994, allocations: 0.557 MB / 498.7 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002788/0.07273, allocations: 0.9822 MB / 499.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004552/0.07728, allocations: 2.789 MB / 0.4907 GB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.07744, allocations: 279.8 kB / 0.491 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006136/0.07805, allocations: 364.3 kB / 0.4913 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006452/0.0845, allocations: 4.939 MB / 0.4961 GB, free: 6.551 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.717e-05/0.08456, allocations: 0 / 0.4961 GB, free: 6.551 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002342/0.08479, allocations: 156 kB / 0.4963 GB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.0849, allocations: 155.3 kB / 0.4964 GB, free: 6.246 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005115/0.09002, allocations: 4.046 MB / 0.5004 GB, free: 2.195 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0179/0.1079, allocations: 13.82 MB / 0.5139 GB, free: 3.961 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003411/0.1113, allocations: 2.735 MB / 0.5166 GB, free: 1.344 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/0.1134, allocations: 1.815 MB / 0.5183 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005528/0.1189, allocations: 3.694 MB / 0.5219 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.119, allocations: 51.88 kB / 0.522 GB, free: 11.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 2.675e-06/0.119, allocations: 0 / 0.522 GB, free: 11.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.009051/0.128, allocations: 6.222 MB / 0.5281 GB, free: 5.465 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.1281, allocations: 68.72 kB / 0.5281 GB, free: 5.387 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002738/0.1308, allocations: 2.259 MB / 0.5303 GB, free: 3.098 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.146e-05/0.1309, allocations: 53.7 kB / 0.5304 GB, free: 3.039 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000873/0.1318, allocations: 1.787 MB / 0.5321 GB, free: 1.234 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000332/0.1321, allocations: 0.5694 MB / 0.5327 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004056/0.1325, allocations: 408 kB / 0.5331 GB, free: 260 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.629e-05/0.1326, allocations: 301.1 kB / 0.5334 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009197/0.1335, allocations: 0.8438 MB / 0.5342 GB, free: 15.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.1349, allocations: 1.63 MB / 0.5358 GB, free: 13.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002204/0.1371, allocations: 2.612 MB / 0.5383 GB, free: 10.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.1371, allocations: 4 kB / 0.5383 GB, free: 10.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.003712/0.1408, allocations: 3.053 MB / 0.5413 GB, free: 7.094 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.1409, allocations: 16 kB / 0.5413 GB, free: 7.078 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.194e-05/0.1409, allocations: 27.98 kB / 0.5414 GB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008109/0.1417, allocations: 342.9 kB / 0.5417 GB, free: 6.707 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009394/0.1426, allocations: 0.4953 MB / 0.5422 GB, free: 6.211 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003707/0.1463, allocations: 5.026 MB / 0.5471 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.1478, allocations: 108 kB / 0.5472 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.1479, allocations: 96 kB / 0.5473 GB, free: 0.7617 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.001648/0.1496, allocations: 1.129 MB / 0.5484 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000532/0.1501, allocations: 258.3 kB / 0.5486 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/0.1528, allocations: 2.317 MB / 0.5509 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.1528, allocations: 16 kB / 0.5509 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1528, allocations: 8 kB / 0.5509 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.1529, allocations: 7.969 kB / 0.5509 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006156/0.159, allocations: 5.295 MB / 0.5561 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.159, allocations: 7.938 kB / 0.5561 GB, free: 7.605 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006149/0.1596, allocations: 267.6 kB / 0.5563 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000534/0.1602, allocations: 366.5 kB / 0.5567 GB, free: 6.977 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.921e-05/0.1602, allocations: 43.92 kB / 0.5567 GB, free: 6.934 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1791/0.3393, allocations: 7.019 MB / 0.5636 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3393, allocations: 5.188 kB / 0.5636 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004336/0.3436, allocations: 3.437 MB / 0.567 GB, free: 114.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.3447, allocations: 443.1 kB / 0.5674 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004144/0.3451, allocations: 36.62 kB / 0.5674 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007316/0.3459, allocations: 63.88 kB / 0.5675 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002966/0.3462, allocations: 121.7 kB / 0.5676 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.031e-05/0.3462, allocations: 42.7 kB / 0.5676 GB, free: 114.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002348/0.3486, allocations: 1.497 MB / 0.5691 GB, free: 114.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3486, allocations: 3.969 kB / 0.5691 GB, free: 114.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001801/0.3504, allocations: 0.6614 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.00332/0.3537, allocations: 4.047 MB / 0.5737 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002463/0.3562, allocations: 2.344 MB / 0.576 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3562, allocations: 3.969 kB / 0.576 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.3573, allocations: 1.362 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.001764/0.3591, allocations: 0.5753 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.02726/0.3863, allocations: 23.76 MB / 0.6011 GB, free: 86.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/0.3875, allocations: 1.983 MB / 0.603 GB, free: 84.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001098/0.3886, allocations: 0.5161 MB / 0.6035 GB, free: 83.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009389/0.3895, allocations: 1.367 MB / 0.6049 GB, free: 82.46 MB / 426.7 MB Notification: Performance of SimCode: time 1.182e-06/0.3895, allocations: 0 / 0.6049 GB, free: 82.46 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07671/0.4662, allocations: 61.71 MB / 0.6651 GB, free: 21.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.852/9.319, allocations: 15.98 kB / 0.6651 GB, free: 21.3 MB / 426.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.41613213904202] Failed to read output from testmodel.py, exit status != 0: 9.433428428135812 9.439632162 9.379489495 Calling exit ...