Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.001309/0.001309, allocations: 105.4 kB / 15.7 MB, free: 24 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.462/1.462, allocations: 222.9 MB / 239.4 MB, free: 4.586 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.001621/0.001621, allocations: 183.5 kB / 289.7 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.03444/0.03444, allocations: 8.796 MB / 348.6 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 88.12 kB / 411.4 MB, free: 41.92 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1161, allocations: 51.55 MB / 462.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01835/0.1345, allocations: 16.72 MB / 479.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.1464, allocations: 5.457 MB / 485.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003906/0.1503, allocations: 103.6 kB / 485.2 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004792/0.1551, allocations: 1.262 MB / 486.4 MB, free: 6.512 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.006775/0.162, allocations: 1.611 MB / 488.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.1655, allocations: 1.039 MB / 489.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008361/0.1739, allocations: 5.029 MB / 494.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005794/0.1797, allocations: 4.307 MB / 498.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004261/0.184, allocations: 2.266 MB / 0.489 GB, free: 8.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005773/0.1898, allocations: 2.65 MB / 0.4916 GB, free: 5.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00308/0.1929, allocations: 0.6172 MB / 0.4922 GB, free: 4.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003821/0.1968, allocations: 0.8396 MB / 0.493 GB, free: 4.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001791/0.1986, allocations: 1.433 MB / 0.4944 GB, free: 2.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004627/0.2032, allocations: 2.649 MB / 0.497 GB, free: 15.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009527/0.2128, allocations: 8.12 MB / 0.5049 GB, free: 7.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.2128, allocations: 3.984 kB / 0.5049 GB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2128, allocations: 0 / 0.5049 GB, free: 7.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002416/0.2131, allocations: 0 / 0.5049 GB, free: 7.777 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01718/0.2303, allocations: 5.393 MB / 0.5102 GB, free: 2.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.2303, allocations: 8.031 kB / 0.5102 GB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00138/0.2317, allocations: 0.5519 MB / 0.5107 GB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005586/0.2373, allocations: 0.9947 MB / 0.5117 GB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007554/0.2449, allocations: 3.03 MB / 0.5146 GB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002757/0.2452, allocations: 308.5 kB / 0.5149 GB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001284/0.2465, allocations: 399.8 kB / 0.5153 GB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/0.2585, allocations: 5.221 MB / 0.5204 GB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.797e-05/0.2586, allocations: 7.984 kB / 0.5204 GB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004081/0.259, allocations: 167.9 kB / 0.5206 GB, free: 7.473 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000171/0.2592, allocations: 168 kB / 0.5207 GB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009407/0.2686, allocations: 4.474 MB / 0.5251 GB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2686/0.5373, allocations: 16.59 MB / 0.5413 GB, free: 58.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007567/0.5449, allocations: 8.43 MB / 0.5495 GB, free: 51.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003523/0.5485, allocations: 1.709 MB / 0.5512 GB, free: 50.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008739/0.5573, allocations: 4.971 MB / 0.5561 GB, free: 47.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.5574, allocations: 53.81 kB / 0.5561 GB, free: 47.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 4.228e-06/0.5574, allocations: 1.938 kB / 0.5561 GB, free: 47.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01151/0.5689, allocations: 6.162 MB / 0.5621 GB, free: 43.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/0.569, allocations: 72.22 kB / 0.5622 GB, free: 43.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003488/0.5725, allocations: 2.288 MB / 0.5644 GB, free: 42.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002814/0.5728, allocations: 57.58 kB / 0.5645 GB, free: 42.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009046/0.5737, allocations: 1.842 MB / 0.5663 GB, free: 40.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003806/0.5741, allocations: 0.5461 MB / 0.5668 GB, free: 39.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005193/0.5746, allocations: 398.3 kB / 0.5672 GB, free: 39.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.209e-05/0.5747, allocations: 301.1 kB / 0.5675 GB, free: 39.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.5761, allocations: 0.8528 MB / 0.5683 GB, free: 38.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.5777, allocations: 1.559 MB / 0.5699 GB, free: 37.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003086/0.5808, allocations: 2.568 MB / 0.5724 GB, free: 35.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.5808, allocations: 7.406 kB / 0.5724 GB, free: 35.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.004253/0.5851, allocations: 2.899 MB / 0.5752 GB, free: 33.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.5851, allocations: 16 kB / 0.5752 GB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/0.5851, allocations: 24 kB / 0.5752 GB, free: 33.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003056/0.5854, allocations: 117.7 kB / 0.5753 GB, free: 32.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001848/0.5873, allocations: 0.5422 MB / 0.5759 GB, free: 32.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.5888, allocations: 2.014 MB / 0.5778 GB, free: 30.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/0.591, allocations: 119.8 kB / 0.578 GB, free: 30.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002199/0.5912, allocations: 99.98 kB / 0.5781 GB, free: 29.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (270): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002179/0.5934, allocations: 1.199 MB / 0.5792 GB, free: 28.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000548/0.594, allocations: 243.3 kB / 0.5795 GB, free: 28.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003947/0.5979, allocations: 2.459 MB / 0.5819 GB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.5979, allocations: 19.98 kB / 0.5819 GB, free: 26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.598, allocations: 4 kB / 0.5819 GB, free: 26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.598, allocations: 7.969 kB / 0.5819 GB, free: 25.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00862/0.6066, allocations: 5.79 MB / 0.5875 GB, free: 20.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.6067, allocations: 4 kB / 0.5875 GB, free: 20.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/0.6079, allocations: 288.8 kB / 0.5878 GB, free: 19.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007495/0.6087, allocations: 310.4 kB / 0.5881 GB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.6088, allocations: 39.98 kB / 0.5882 GB, free: 19.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005002/0.6138, allocations: 6.987 MB / 0.595 GB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6138, allocations: 208 / 0.595 GB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004903/0.6187, allocations: 3.581 MB / 0.5985 GB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/0.62, allocations: 0.4941 MB / 0.599 GB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003344/0.6203, allocations: 35.98 kB / 0.599 GB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.6214, allocations: 75.94 kB / 0.5991 GB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003075/0.6218, allocations: 130.9 kB / 0.5992 GB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.55e-05/0.6219, allocations: 47.98 kB / 0.5992 GB, free: 7.625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001983/0.6238, allocations: 1.55 MB / 0.6007 GB, free: 6.062 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6239, allocations: 0 / 0.6007 GB, free: 6.062 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002397/0.6263, allocations: 0.6707 MB / 0.6014 GB, free: 5.395 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.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 {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004888/0.6312, allocations: 4.19 MB / 0.6055 GB, free: 1.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003943/0.6351, allocations: 2.288 MB / 0.6077 GB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.6352, allocations: 0 / 0.6077 GB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002258/0.6374, allocations: 1.444 MB / 0.6091 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002986/0.6404, allocations: 0.5958 MB / 0.6097 GB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04068/0.6811, allocations: 24.1 MB / 0.6333 GB, free: 3.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/0.6838, allocations: 2.669 MB / 0.6359 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00206/0.6859, allocations: 0.5552 MB / 0.6364 GB, free: 388 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/0.6882, allocations: 1.479 MB / 0.6378 GB, free: 14.91 MB / 414.1 MB Notification: Performance of SimCode: time 2.264e-06/0.6882, allocations: 0 / 0.6378 GB, free: 14.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1104/0.7986, allocations: 58.03 MB / 0.6945 GB, free: 5.324 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14/14.8, allocations: 10.58 kB / 0.6945 GB, free: 5.316 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)