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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00992/0.00992, allocations: 96.7 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 239.4 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 192.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03451/0.03451, allocations: 8.8 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 71.89 kB / 463.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1179, allocations: 51.57 MB / 0.503 GB, free: 9.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.02081/0.1387, allocations: 15.81 MB / 0.5184 GB, free: 10.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01254/0.1513, allocations: 5.286 MB / 0.5236 GB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00388/0.1553, allocations: 91.69 kB / 0.5236 GB, free: 4.676 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004382/0.1597, allocations: 1.239 MB / 0.5249 GB, free: 3.43 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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.005681/0.1654, allocations: 1.596 MB / 0.5264 GB, free: 1.824 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002875/0.1683, allocations: 0.9814 MB / 0.5274 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3133/0.4816, allocations: 4.682 MB / 0.5319 GB, free: 5.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005337/0.487, allocations: 3.523 MB / 0.5354 GB, free: 5.047 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004396/0.4915, allocations: 2.122 MB / 0.5375 GB, free: 4.785 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005547/0.497, allocations: 2.437 MB / 0.5398 GB, free: 4.359 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002283/0.4994, allocations: 0.5712 MB / 0.5404 GB, free: 4.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004007/0.5034, allocations: 0.7792 MB / 0.5412 GB, free: 4.359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002143/0.5056, allocations: 1.293 MB / 0.5424 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006887/0.5125, allocations: 2.44 MB / 0.5448 GB, free: 3.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01439/0.5269, allocations: 7.528 MB / 0.5522 GB, free: 2.695 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.415e-05/0.527, allocations: 5.125 kB / 0.5522 GB, free: 2.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.626e-06/0.527, allocations: 0 / 0.5522 GB, free: 2.691 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003292/0.5274, allocations: 3.328 kB / 0.5522 GB, free: 2.691 MB / 366.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.01649/0.5439, allocations: 5.082 MB / 0.5571 GB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.5439, allocations: 9.062 kB / 0.5571 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001138/0.5451, allocations: 0.5557 MB / 0.5577 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005439/0.5505, allocations: 0.974 MB / 0.5586 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006067/0.5566, allocations: 2.844 MB / 0.5614 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.5568, allocations: 276.2 kB / 0.5617 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006767/0.5575, allocations: 373.7 kB / 0.562 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/0.5677, allocations: 4.777 MB / 0.5667 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.533e-05/0.5679, allocations: 3.953 kB / 0.5667 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000385/0.5683, allocations: 147.5 kB / 0.5668 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000141/0.5684, allocations: 163.9 kB / 0.567 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007908/0.5763, allocations: 4.044 MB / 0.5709 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03369/0.61, allocations: 15.6 MB / 0.5862 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007517/0.6176, allocations: 6.929 MB / 0.5929 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002814/0.6205, allocations: 1.506 MB / 0.5944 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009029/0.6295, allocations: 4.159 MB / 0.5985 GB, free: 9.137 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.829e-05/0.6296, allocations: 43.88 kB / 0.5985 GB, free: 9.082 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.869e-06/0.6296, allocations: 7.281 kB / 0.5985 GB, free: 9.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.0148/0.6444, allocations: 6.419 MB / 0.6048 GB, free: 2.539 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.6445, allocations: 68.72 kB / 0.6049 GB, free: 2.461 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005562/0.6501, allocations: 2.187 MB / 0.607 GB, free: 248 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003425/0.6505, allocations: 53.7 kB / 0.607 GB, free: 188 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/0.6521, allocations: 1.785 MB / 0.6088 GB, free: 14.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006487/0.6527, allocations: 0.5684 MB / 0.6093 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007453/0.6535, allocations: 410.3 kB / 0.6097 GB, free: 13.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.6536, allocations: 305.1 kB / 0.61 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/0.6551, allocations: 0.8242 MB / 0.6108 GB, free: 12.3 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.6571, allocations: 1.594 MB / 0.6124 GB, free: 10.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003433/0.6605, allocations: 2.584 MB / 0.6149 GB, free: 7.535 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.867e-05/0.6605, allocations: 11.47 kB / 0.6149 GB, free: 7.527 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005417/0.666, allocations: 3.05 MB / 0.6179 GB, free: 4.594 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.666, allocations: 15.94 kB / 0.6179 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-05/0.6661, allocations: 28 kB / 0.6179 GB, free: 4.551 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008605/0.6669, allocations: 294.8 kB / 0.6182 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001848/0.6688, allocations: 0.4994 MB / 0.6187 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005259/0.6741, allocations: 4.878 MB / 0.6235 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002595/0.6767, allocations: 103.9 kB / 0.6236 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000304/0.677, allocations: 100.1 kB / 0.6237 GB, free: 14.47 MB / 446.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 (264): * Single equations (assignments): 261 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00295/0.68, allocations: 1.137 MB / 0.6248 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007683/0.6807, allocations: 246.5 kB / 0.625 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004864/0.6856, allocations: 2.399 MB / 0.6274 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.6857, allocations: 16 kB / 0.6274 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/0.6857, allocations: 4 kB / 0.6274 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.6857, allocations: 11.97 kB / 0.6274 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/0.6981, allocations: 5.692 MB / 0.6329 GB, free: 4.879 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.6982, allocations: 4 kB / 0.6329 GB, free: 4.875 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.6994, allocations: 274.2 kB / 0.6332 GB, free: 4.621 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008609/0.7003, allocations: 326 kB / 0.6335 GB, free: 4.301 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/0.7005, allocations: 35.98 kB / 0.6336 GB, free: 4.266 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006725/0.7072, allocations: 7.011 MB / 0.6404 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.7073, allocations: 4.031 kB / 0.6404 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006608/0.7139, allocations: 3.501 MB / 0.6438 GB, free: 9.312 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002178/0.7161, allocations: 0.4955 MB / 0.6443 GB, free: 8.797 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001147/0.7173, allocations: 36 kB / 0.6443 GB, free: 8.762 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/0.7192, allocations: 71.89 kB / 0.6444 GB, free: 8.691 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003207/0.7195, allocations: 109.2 kB / 0.6445 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/0.7197, allocations: 51.64 kB / 0.6446 GB, free: 8.539 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003928/0.7236, allocations: 1.472 MB / 0.646 GB, free: 7.051 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7236, allocations: 0 / 0.646 GB, free: 7.051 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004642/0.7283, allocations: 0.6562 MB / 0.6466 GB, free: 6.395 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 (133): * Single equations (assignments): 130 * 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,5,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.007082/0.7354, allocations: 4.113 MB / 0.6507 GB, free: 2.219 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004138/0.7396, allocations: 2.472 MB / 0.6531 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.7396, allocations: 2.062 kB / 0.6531 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002146/0.7418, allocations: 1.413 MB / 0.6545 GB, free: 14.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004121/0.7459, allocations: 0.5807 MB / 0.655 GB, free: 13.79 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04704/0.793, allocations: 23.69 MB / 0.6782 GB, free: 5.074 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002661/0.7957, allocations: 2.515 MB / 0.6806 GB, free: 2.527 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002151/0.7978, allocations: 0.5196 MB / 0.6811 GB, free: 2.004 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001881/0.7997, allocations: 1.351 MB / 0.6824 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/0.7998, allocations: 0 / 0.6824 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3448/1.145, allocations: 57.85 MB / 0.7389 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/14.96, allocations: 6.562 kB / 0.7389 GB, free: 179.8 MB / 0.5294 GB (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)