Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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.001538/0.001538, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.517/1.517, allocations: 230.6 MB / 252.7 MB, free: 8.309 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.001726/0.001726, allocations: 212.1 kB / 309.2 MB, free: 3.16 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.04405/0.04405, allocations: 8.909 MB / 374.6 MB, free: 1.914 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_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.002845/0.002845, allocations: 79.88 kB / 0.4892 GB, free: 7.363 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3157, allocations: 55.61 MB / 0.5435 GB, free: 26.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01271/0.3284, allocations: 16.55 MB / 0.5597 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009138/0.3375, allocations: 5.595 MB / 0.5652 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002883/0.3404, allocations: 120.7 kB / 0.5653 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003527/0.3439, allocations: 1.276 MB / 0.5665 GB, free: 10.08 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.004761/0.3487, allocations: 1.6 MB / 0.5681 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002798/0.3515, allocations: 1.04 MB / 0.5691 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006213/0.3577, allocations: 4.752 MB / 0.5737 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003029/0.3607, allocations: 1.994 MB / 0.5757 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003754/0.3645, allocations: 2.174 MB / 0.5778 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005063/0.3695, allocations: 2.598 MB / 0.5804 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001817/0.3714, allocations: 0.5719 MB / 0.5809 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002876/0.3742, allocations: 0.8067 MB / 0.5817 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001537/0.3758, allocations: 1.304 MB / 0.583 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005288/0.3811, allocations: 2.449 MB / 0.5854 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01369/0.3947, allocations: 7.577 MB / 0.5928 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.3948, allocations: 1.188 kB / 0.5928 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.105e-06/0.3948, allocations: 0 / 0.5928 GB, free: 10.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002923/0.3951, allocations: 0 / 0.5928 GB, free: 10.2 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.01584/0.4109, allocations: 5.052 MB / 0.5977 GB, free: 5.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.4109, allocations: 12.03 kB / 0.5977 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001014/0.412, allocations: 0.557 MB / 0.5983 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005309/0.4173, allocations: 0.978 MB / 0.5992 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006288/0.4235, allocations: 2.806 MB / 0.6019 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002402/0.4238, allocations: 279.8 kB / 0.6022 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006415/0.4244, allocations: 367.9 kB / 0.6026 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008921/0.4334, allocations: 4.78 MB / 0.6072 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.193e-05/0.4334, allocations: 11.89 kB / 0.6072 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003714/0.4338, allocations: 152 kB / 0.6074 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001688/0.434, allocations: 155.3 kB / 0.6075 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007758/0.4417, allocations: 4.054 MB / 0.6115 GB, free: 7.262 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02702/0.4687, allocations: 15.14 MB / 0.6263 GB, free: 7.691 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005422/0.4742, allocations: 2.748 MB / 0.629 GB, free: 5.062 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003845/0.478, allocations: 1.811 MB / 0.6307 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009528/0.4875, allocations: 4.068 MB / 0.6347 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.853e-05/0.4876, allocations: 43.88 kB / 0.6347 GB, free: 15.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.366e-06/0.4876, allocations: 0 / 0.6347 GB, free: 15.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01487/0.5025, allocations: 6.242 MB / 0.6408 GB, free: 8.816 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.5025, allocations: 68.72 kB / 0.6409 GB, free: 8.734 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004203/0.5067, allocations: 2.213 MB / 0.6431 GB, free: 6.492 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000152/0.5069, allocations: 53.7 kB / 0.6431 GB, free: 6.434 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001551/0.5084, allocations: 1.795 MB / 0.6449 GB, free: 4.621 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005838/0.509, allocations: 0.5733 MB / 0.6454 GB, free: 4.043 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006883/0.5097, allocations: 416 kB / 0.6458 GB, free: 3.629 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.5099, allocations: 301.1 kB / 0.6461 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.5114, allocations: 0.8398 MB / 0.6469 GB, free: 2.488 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00223/0.5136, allocations: 1.601 MB / 0.6485 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004219/0.5179, allocations: 2.62 MB / 0.6511 GB, free: 13.57 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-05/0.5179, allocations: 8 kB / 0.6511 GB, free: 13.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006127/0.524, allocations: 3.045 MB / 0.654 GB, free: 10.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.11e-05/0.5241, allocations: 16 kB / 0.6541 GB, free: 10.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.835e-05/0.5241, allocations: 28 kB / 0.6541 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.5251, allocations: 354.9 kB / 0.6544 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/0.527, allocations: 0.4953 MB / 0.6549 GB, free: 9.605 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006837/0.5338, allocations: 5.07 MB / 0.6599 GB, free: 4.309 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/0.536, allocations: 104 kB / 0.66 GB, free: 4.207 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002827/0.5362, allocations: 104 kB / 0.6601 GB, free: 4.105 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.002729/0.539, allocations: 1.136 MB / 0.6612 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008829/0.5399, allocations: 250.5 kB / 0.6614 GB, free: 2.715 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005269/0.5451, allocations: 2.317 MB / 0.6637 GB, free: 380 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.839e-05/0.5451, allocations: 15.98 kB / 0.6637 GB, free: 364 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.696e-05/0.5452, allocations: 12 kB / 0.6637 GB, free: 352 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/0.5452, allocations: 7.969 kB / 0.6637 GB, free: 344 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/0.5576, allocations: 5.649 MB / 0.6692 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.5576, allocations: 0 / 0.6692 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.5589, allocations: 271.8 kB / 0.6695 GB, free: 10.33 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.5599, allocations: 370.8 kB / 0.6698 GB, free: 9.961 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001369/0.5601, allocations: 39.98 kB / 0.6699 GB, free: 9.922 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008415/0.5685, allocations: 7.1 MB / 0.6768 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/0.5685, allocations: 11.91 kB / 0.6768 GB, free: 2.473 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006365/0.5748, allocations: 3.438 MB / 0.6802 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/0.5764, allocations: 446.2 kB / 0.6806 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006443/0.577, allocations: 32 kB / 0.6806 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.5784, allocations: 67.95 kB / 0.6807 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000315/0.5787, allocations: 121 kB / 0.6808 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.5789, allocations: 43.98 kB / 0.6808 GB, free: 14.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002957/0.5818, allocations: 1.496 MB / 0.6823 GB, free: 12.78 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5818, allocations: 0 / 0.6823 GB, free: 12.78 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003099/0.5849, allocations: 0.664 MB / 0.683 GB, free: 12.12 MB / 494.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.006959/0.5919, allocations: 4.059 MB / 0.6869 GB, free: 8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004591/0.5965, allocations: 2.338 MB / 0.6892 GB, free: 5.637 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.5965, allocations: 0 / 0.6892 GB, free: 5.637 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00242/0.5989, allocations: 1.37 MB / 0.6905 GB, free: 4.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003578/0.6025, allocations: 0.5821 MB / 0.6911 GB, free: 3.652 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2645/0.867, allocations: 23.8 MB / 0.7144 GB, free: 114.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002565/0.8695, allocations: 2.526 MB / 0.7168 GB, free: 113.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002641/0.8722, allocations: 0.5165 MB / 0.7173 GB, free: 113.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001806/0.874, allocations: 1.366 MB / 0.7187 GB, free: 112.2 MB / 494.1 MB Notification: Performance of SimCode: time 2.164e-06/0.874, allocations: 0 / 0.7187 GB, free: 112.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1223/0.9962, allocations: 60.76 MB / 0.778 GB, free: 65.26 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.34/17.33, allocations: 7.219 kB / 0.778 GB, free: 65.26 MB / 494.1 MB " [Timeout remaining time 643] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.58541054604575] Failed to read output from testmodel.py, exit status != 0: 17.483846307964996 17.50158308 17.102958583 Calling exit ...