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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 239.3 MB, free: 4.582 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.001474/0.001474, allocations: 199.4 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03486/0.03486, allocations: 8.803 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 83.52 kB / 411.2 MB, free: 42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08126/0.08296, allocations: 51.56 MB / 462.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01552/0.09851, allocations: 15.8 MB / 478.6 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009497/0.108, allocations: 5.27 MB / 483.8 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00282/0.1109, allocations: 95.62 kB / 483.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004194/0.1151, allocations: 1.215 MB / 485.1 MB, free: 7.789 MB / 318.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.00536/0.1206, allocations: 1.548 MB / 486.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002837/0.1234, allocations: 0.9719 MB / 487.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006022/0.1294, allocations: 4.676 MB / 492.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005263/0.1347, allocations: 3.52 MB / 495.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003623/0.1384, allocations: 2.095 MB / 497.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004325/0.1427, allocations: 2.428 MB / 0.4886 GB, free: 8.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00163/0.1444, allocations: 0.5703 MB / 0.4892 GB, free: 7.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.147, allocations: 0.7966 MB / 0.49 GB, free: 7.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00174/0.1487, allocations: 1.289 MB / 0.4912 GB, free: 5.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004464/0.1532, allocations: 2.45 MB / 0.4936 GB, free: 3.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00829/0.1615, allocations: 7.443 MB / 0.5009 GB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1616, allocations: 0 / 0.5009 GB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1616, allocations: 0 / 0.5009 GB, free: 11.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000206/0.1618, allocations: 4 kB / 0.5009 GB, free: 11.85 MB / 350.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.01365/0.1754, allocations: 4.97 MB / 0.5058 GB, free: 6.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.1755, allocations: 8.031 kB / 0.5058 GB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001419/0.1769, allocations: 0.5609 MB / 0.5063 GB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005196/0.1821, allocations: 0.9522 MB / 0.5072 GB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00683/0.189, allocations: 2.766 MB / 0.5099 GB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003477/0.1894, allocations: 271.8 kB / 0.5102 GB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/0.1904, allocations: 371.9 kB / 0.5106 GB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01083/0.2013, allocations: 4.776 MB / 0.5152 GB, free: 13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000106/0.2014, allocations: 3.906 kB / 0.5152 GB, free: 13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005839/0.202, allocations: 152 kB / 0.5154 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001386/0.2022, allocations: 151.4 kB / 0.5155 GB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007414/0.2096, allocations: 4.046 MB / 0.5195 GB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2071/0.4167, allocations: 15.75 MB / 0.5348 GB, free: 56.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005983/0.4228, allocations: 6.918 MB / 0.5416 GB, free: 51.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00249/0.4253, allocations: 1.518 MB / 0.5431 GB, free: 51.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006623/0.4319, allocations: 4.176 MB / 0.5472 GB, free: 50.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.432, allocations: 49.14 kB / 0.5472 GB, free: 50.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.817e-06/0.432, allocations: 0 / 0.5472 GB, free: 50.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01195/0.444, allocations: 6.372 MB / 0.5534 GB, free: 48.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.4441, allocations: 67 kB / 0.5535 GB, free: 48.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004004/0.4481, allocations: 2.186 MB / 0.5556 GB, free: 47.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/0.4482, allocations: 53.61 kB / 0.5557 GB, free: 47.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008529/0.4491, allocations: 1.733 MB / 0.5574 GB, free: 45.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000331/0.4494, allocations: 0.5419 MB / 0.5579 GB, free: 45.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005146/0.4499, allocations: 405.7 kB / 0.5583 GB, free: 45.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.031e-05/0.45, allocations: 301.1 kB / 0.5586 GB, free: 44.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.4511, allocations: 0.827 MB / 0.5594 GB, free: 44.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.4525, allocations: 1.591 MB / 0.5609 GB, free: 42.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002614/0.4551, allocations: 2.589 MB / 0.5635 GB, free: 40.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-05/0.4552, allocations: 7.406 kB / 0.5635 GB, free: 40.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004235/0.4594, allocations: 3.036 MB / 0.5664 GB, free: 39.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.4595, allocations: 19.31 kB / 0.5665 GB, free: 39.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/0.4595, allocations: 28.91 kB / 0.5665 GB, free: 39.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007624/0.4603, allocations: 304.2 kB / 0.5668 GB, free: 39.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/0.462, allocations: 0.4972 MB / 0.5673 GB, free: 39.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003719/0.4657, allocations: 4.874 MB / 0.572 GB, free: 34.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001901/0.4676, allocations: 102.5 kB / 0.5721 GB, free: 34.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001836/0.4678, allocations: 98.06 kB / 0.5722 GB, free: 34.62 MB / 366.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.001787/0.4696, allocations: 1.142 MB / 0.5733 GB, free: 33.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004753/0.4701, allocations: 234.9 kB / 0.5736 GB, free: 33.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/0.4736, allocations: 2.402 MB / 0.5759 GB, free: 32.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.4736, allocations: 23.94 kB / 0.5759 GB, free: 32.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.4736, allocations: 4 kB / 0.5759 GB, free: 32.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.4737, allocations: 11.97 kB / 0.5759 GB, free: 32.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007723/0.4814, allocations: 5.704 MB / 0.5815 GB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.4814, allocations: 0 / 0.5815 GB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.4826, allocations: 267.7 kB / 0.5818 GB, free: 26.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007465/0.4833, allocations: 314.5 kB / 0.5821 GB, free: 25.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.483e-05/0.4834, allocations: 39.98 kB / 0.5821 GB, free: 25.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005126/0.4886, allocations: 7.031 MB / 0.589 GB, free: 18.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4886, allocations: 8.016 kB / 0.589 GB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004558/0.4931, allocations: 3.482 MB / 0.5924 GB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009969/0.4942, allocations: 494.2 kB / 0.5928 GB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002883/0.4945, allocations: 28 kB / 0.5929 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.4955, allocations: 71.95 kB / 0.5929 GB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002734/0.4958, allocations: 121.9 kB / 0.5931 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-05/0.4959, allocations: 40 kB / 0.5931 GB, free: 14.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001767/0.4976, allocations: 1.478 MB / 0.5945 GB, free: 12.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4976, allocations: 8 kB / 0.5945 GB, free: 12.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002179/0.4998, allocations: 0.6523 MB / 0.5952 GB, free: 11.86 MB / 366.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.004416/0.5043, allocations: 4.103 MB / 0.5992 GB, free: 7.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005329/0.5096, allocations: 3.034 MB / 0.6021 GB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.5096, allocations: 0.8125 kB / 0.6022 GB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.5113, allocations: 1.409 MB / 0.6035 GB, free: 3.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/0.5139, allocations: 0.5723 MB / 0.6041 GB, free: 2.617 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03813/0.552, allocations: 27.04 MB / 0.6305 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002275/0.5544, allocations: 2.515 MB / 0.6329 GB, free: 2.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002059/0.5564, allocations: 0.5196 MB / 0.6335 GB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001793/0.5582, allocations: 1.358 MB / 0.6348 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of SimCode: time 1.031e-06/0.5583, allocations: 0 / 0.6348 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1148/0.6731, allocations: 58.41 MB / 0.6918 GB, free: 6.602 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.04, allocations: 14.19 kB / 0.6918 GB, free: 6.59 MB / 462.1 MB (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 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)