Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Transformer,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Transformer,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Transformer",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.0009348/0.0009395, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.366/1.366, allocations: 223.2 MB / 238.9 MB, free: 5.676 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.001087/0.001087, allocations: 191.5 kB / 290.2 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03282/0.03282, allocations: 8.787 MB / 350 MB, free: 4.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004446/0.0004448, allocations: 13.41 kB / 416.5 MB, free: 41.16 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1113, allocations: 52.56 MB / 469.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.03983/0.1512, allocations: 39.55 MB / 0.4967 GB, free: 2.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.035/0.1862, allocations: 12.48 MB / 0.5089 GB, free: 6.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01258/0.1989, allocations: 326.9 kB / 0.5092 GB, free: 5.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01319/0.2121, allocations: 2.627 MB / 0.5118 GB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0205/0.2327, allocations: 4.583 MB / 0.5162 GB, free: 14.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009767/0.2425, allocations: 2.222 MB / 0.5184 GB, free: 12.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3147/0.5572, allocations: 18.52 MB / 0.5365 GB, free: 9.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08169/0.6389, allocations: 36.19 MB / 0.5718 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01938/0.6584, allocations: 8.238 MB / 0.5799 GB, free: 3.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01936/0.6778, allocations: 9.27 MB / 0.5889 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008304/0.6861, allocations: 1.402 MB / 0.5903 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01352/0.6996, allocations: 1.779 MB / 0.592 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01059/0.7103, allocations: 4.411 MB / 0.5964 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01237/0.7227, allocations: 4.596 MB / 0.6008 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05488/0.7776, allocations: 41.08 MB / 0.641 GB, free: 4.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.7776, allocations: 0 / 0.641 GB, free: 4.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.7777, allocations: 0 / 0.641 GB, free: 4.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.001592/0.7793, allocations: 0 / 0.641 GB, free: 4.34 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.07512/0.8544, allocations: 23.02 MB / 0.6634 GB, free: 13.51 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.8544, allocations: 12.83 kB / 0.6635 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01327/0.8677, allocations: 2.983 MB / 0.6664 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07466/0.9424, allocations: 13.89 MB / 0.6799 GB, free: 12.75 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03809/0.9805, allocations: 14.38 MB / 0.694 GB, free: 14.49 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001775/0.9824, allocations: 1.573 MB / 0.6955 GB, free: 12.94 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01024/0.9926, allocations: 2.08 MB / 0.6975 GB, free: 10.88 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5506/1.543, allocations: 34.39 MB / 0.7311 GB, free: 101.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001266/1.545, allocations: 20.38 kB / 0.7311 GB, free: 101.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009737/1.554, allocations: 0.8611 MB / 0.732 GB, free: 101.3 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001314/1.556, allocations: 1.153 MB / 0.7331 GB, free: 101.2 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07714/1.633, allocations: 32.19 MB / 0.7645 GB, free: 86.45 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1843/1.817, allocations: 107.9 MB / 0.8699 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5273/2.344, allocations: 50.76 MB / 0.9195 GB, free: 144.9 MB / 0.5295 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05473/2.399, allocations: 21.57 MB / 0.9405 GB, free: 143.8 MB / 0.5295 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001399/2.399, allocations: 137.4 kB / 0.9407 GB, free: 143.7 MB / 0.5295 GB Notification: Performance of pre-optimization done (n=906): time 1.296e-05/2.399, allocations: 1.312 kB / 0.9407 GB, free: 143.7 MB / 0.5295 GB Notification: Performance of matching and sorting (n=918): time 0.07705/2.477, allocations: 39.87 MB / 0.9796 GB, free: 126.2 MB / 0.5295 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/2.477, allocations: 170.6 kB / 0.9798 GB, free: 126.1 MB / 0.5295 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02105/2.498, allocations: 8.223 MB / 0.9878 GB, free: 123.1 MB / 0.5295 GB Notification: Performance of collectPreVariables (initialization): time 0.002634/2.5, allocations: 180.5 kB / 0.988 GB, free: 122.9 MB / 0.5295 GB Notification: Performance of collectInitialEqns (initialization): time 0.006332/2.507, allocations: 8.676 MB / 0.9964 GB, free: 116.4 MB / 0.5295 GB Notification: Performance of collectInitialBindings (initialization): time 0.00447/2.511, allocations: 3.081 MB / 0.9994 GB, free: 114.1 MB / 0.5295 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/2.513, allocations: 238.2 kB / 0.9997 GB, free: 113.9 MB / 0.5295 GB Notification: Performance of setup shared object (initialization): time 0.0006723/2.513, allocations: 0.7833 MB / 1 GB, free: 113.4 MB / 0.5295 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009977/2.523, allocations: 6.271 MB / 1.007 GB, free: 111 MB / 0.5295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01418/2.538, allocations: 9.937 MB / 1.016 GB, free: 104 MB / 0.5295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/2.55, allocations: 8.341 MB / 1.024 GB, free: 98.11 MB / 0.5295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001244/2.55, allocations: 32 kB / 1.024 GB, free: 98.08 MB / 0.5295 GB Notification: Performance of matching and sorting (n=1494) (initialization): time 0.0361/2.586, allocations: 20.36 MB / 1.044 GB, free: 77.78 MB / 0.5295 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/2.587, allocations: 56.03 kB / 1.044 GB, free: 77.73 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001874/2.587, allocations: 120 kB / 1.044 GB, free: 77.61 MB / 0.5295 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.002738/2.59, allocations: 0.9497 MB / 1.045 GB, free: 76.65 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01002/2.6, allocations: 2.426 MB / 1.048 GB, free: 74.22 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009458/2.609, allocations: 11.73 MB / 1.059 GB, free: 61.86 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01059/2.62, allocations: 0.614 MB / 1.06 GB, free: 61.25 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002466/2.622, allocations: 0.5155 MB / 1.06 GB, free: 60.73 MB / 0.5295 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 529 * Number of states: 0 () * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1240): * Single equations (assignments): 1233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01652/2.639, allocations: 7.919 MB / 1.068 GB, free: 52.79 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002881/2.642, allocations: 0.9069 MB / 1.069 GB, free: 51.88 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03294/2.675, allocations: 17.18 MB / 1.086 GB, free: 34.56 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.45e-05/2.675, allocations: 92 kB / 1.086 GB, free: 34.47 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-05/2.675, allocations: 40 kB / 1.086 GB, free: 34.43 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002136/2.675, allocations: 47.83 kB / 1.086 GB, free: 34.39 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3712/3.046, allocations: 36.13 MB / 1.121 GB, free: 135.1 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001222/3.046, allocations: 10.73 kB / 1.121 GB, free: 135.1 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008157/3.054, allocations: 1.445 MB / 1.123 GB, free: 135 MB / 0.5295 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.0037/3.058, allocations: 0.9594 MB / 1.124 GB, free: 135 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001718/3.06, allocations: 206.2 kB / 1.124 GB, free: 135 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01289/3.073, allocations: 15.94 MB / 1.139 GB, free: 125.8 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/3.073, allocations: 11.81 kB / 1.139 GB, free: 125.8 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03981/3.113, allocations: 26.15 MB / 1.165 GB, free: 115.9 MB / 0.5295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007187/3.12, allocations: 2.255 MB / 1.167 GB, free: 115.1 MB / 0.5295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002961/3.123, allocations: 178.3 kB / 1.167 GB, free: 115 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006999/3.13, allocations: 0.5067 MB / 1.168 GB, free: 114.8 MB / 0.5295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00258/3.133, allocations: 0.799 MB / 1.169 GB, free: 114.7 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001303/3.134, allocations: 264.4 kB / 1.169 GB, free: 114.7 MB / 0.5295 GB Notification: Performance of sorting global known variables: time 0.0104/3.144, allocations: 5.576 MB / 1.174 GB, free: 112.6 MB / 0.5295 GB Notification: Performance of sort global known variables: time 5.81e-07/3.144, allocations: 0 / 1.174 GB, free: 112.6 MB / 0.5295 GB Notification: Performance of remove unused functions: time 0.01557/3.16, allocations: 3.476 MB / 1.178 GB, free: 112.3 MB / 0.5295 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (715): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04075/3.201, allocations: 27.99 MB / 1.205 GB, free: 98.15 MB / 0.5295 GB Notification: Performance of simCode: created initialization part: time 0.02358/3.224, allocations: 16.19 MB / 1.221 GB, free: 84.04 MB / 0.5295 GB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/3.224, allocations: 320 / 1.221 GB, free: 84.04 MB / 0.5295 GB Notification: Performance of simCode: created simulation system equations: time 0.0133/3.238, allocations: 8.826 MB / 1.229 GB, free: 76.33 MB / 0.5295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01351/3.251, allocations: 2.313 MB / 1.232 GB, free: 74.44 MB / 0.5295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5193/3.771, allocations: 204.1 MB / 1.431 GB, free: 80 MB / 0.5452 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02315/3.794, allocations: 13.45 MB / 1.444 GB, free: 74.35 MB / 0.5452 GB Notification: Performance of simCode: alias equations: time 0.01325/3.807, allocations: 4.003 MB / 1.448 GB, free: 72.64 MB / 0.5452 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01261/3.82, allocations: 7.83 MB / 1.456 GB, free: 65.41 MB / 0.5452 GB Notification: Performance of SimCode: time 1.423e-06/3.82, allocations: 0 / 1.456 GB, free: 65.41 MB / 0.5452 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5777/4.397, allocations: 275.6 MB / 1.725 GB, free: 3 MB / 0.5608 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/4.398, allocations: 253.6 kB / 1.725 GB, free: 2.754 MB / 0.5608 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/12.26, allocations: 0 / 1.725 GB, free: 2.754 MB / 0.5608 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Transformer.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe 2>&1) Environment - environmentSimulation: