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-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) 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.001169/0.001168, 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.457/1.457, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001443/0.001443, allocations: 180.5 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0357/0.0357, allocations: 8.792 MB / 348.5 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 84.27 kB / 414.7 MB, free: 40.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08971/0.0914, allocations: 51.56 MB / 466.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.0483/0.1397, allocations: 49.49 MB / 0.5036 GB, free: 9.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02783/0.1676, allocations: 12.89 MB / 0.5162 GB, free: 12.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01233/0.18, allocations: 378.8 kB / 0.5166 GB, free: 11.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2365/0.4166, allocations: 13.79 MB / 0.5301 GB, free: 6.539 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01698/0.4336, allocations: 5.432 MB / 0.5354 GB, free: 6.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009789/0.4434, allocations: 3.249 MB / 0.5385 GB, free: 6.457 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.03088/0.4743, allocations: 24.04 MB / 0.562 GB, free: 6.258 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.074/0.5483, allocations: 47.32 MB / 0.6082 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02575/0.5741, allocations: 12.58 MB / 0.6205 GB, free: 6.891 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02485/0.599, allocations: 13.86 MB / 0.634 GB, free: 9.449 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01215/0.6112, allocations: 3.625 MB / 0.6376 GB, free: 5.824 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01447/0.6257, allocations: 4.121 MB / 0.6416 GB, free: 1.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01279/0.6386, allocations: 7.292 MB / 0.6487 GB, free: 10.53 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02751/0.6661, allocations: 13.79 MB / 0.6622 GB, free: 12.79 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4677/1.134, allocations: 48.42 MB / 0.7095 GB, free: 77.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/1.134, allocations: 0 / 0.7095 GB, free: 77.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.374e-06/1.134, allocations: 0 / 0.7095 GB, free: 77.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001377/1.135, allocations: 0 / 0.7095 GB, free: 77.91 MB / 494.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.0855/1.221, allocations: 27.67 MB / 0.7365 GB, free: 71.03 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/1.221, allocations: 14 kB / 0.7365 GB, free: 71.02 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01139/1.232, allocations: 2.985 MB / 0.7394 GB, free: 70.84 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07453/1.307, allocations: 13.89 MB / 0.753 GB, free: 66.45 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03031/1.337, allocations: 14.57 MB / 0.7672 GB, free: 59.6 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001467/1.339, allocations: 1.586 MB / 0.7688 GB, free: 58.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008064/1.347, allocations: 2.081 MB / 0.7708 GB, free: 57.69 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08072/1.427, allocations: 34.72 MB / 0.8047 GB, free: 22.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000995/1.429, allocations: 33.78 kB / 0.8047 GB, free: 22.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007567/1.436, allocations: 0.862 MB / 0.8056 GB, free: 22.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001006/1.437, allocations: 1.149 MB / 0.8067 GB, free: 20.89 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06465/1.502, allocations: 32.32 MB / 0.8383 GB, free: 4.559 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4669/1.969, allocations: 107.6 MB / 0.9433 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03742/2.006, allocations: 50.86 MB / 0.993 GB, free: 141.5 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02051/2.027, allocations: 9.766 MB / 1.003 GB, free: 141.4 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0469/2.074, allocations: 22.62 MB / 1.025 GB, free: 134.7 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001053/2.074, allocations: 134.3 kB / 1.025 GB, free: 134.5 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=894): time 1.341e-05/2.074, allocations: 4 kB / 1.025 GB, free: 134.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=906): time 0.07804/2.152, allocations: 39.47 MB / 1.063 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.895e-05/2.152, allocations: 176.4 kB / 1.063 GB, free: 112.5 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01566/2.168, allocations: 8.348 MB / 1.072 GB, free: 104.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001905/2.17, allocations: 169.7 kB / 1.072 GB, free: 104 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004782/2.174, allocations: 8.688 MB / 1.08 GB, free: 95.29 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.003966/2.178, allocations: 3.046 MB / 1.083 GB, free: 92.27 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008128/2.187, allocations: 2.208 MB / 1.085 GB, free: 90.05 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.457e-05/2.187, allocations: 309.1 kB / 1.086 GB, free: 89.74 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01015/2.197, allocations: 6.238 MB / 1.092 GB, free: 83.5 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01574/2.213, allocations: 9.961 MB / 1.102 GB, free: 71.9 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0241/2.237, allocations: 17.24 MB / 1.118 GB, free: 52.98 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001362/2.237, allocations: 32 kB / 1.118 GB, free: 52.95 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.04079/2.278, allocations: 20.31 MB / 1.138 GB, free: 32.53 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002167/2.278, allocations: 56 kB / 1.138 GB, free: 32.47 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002985/2.278, allocations: 116 kB / 1.138 GB, free: 32.36 MB / 0.5763 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=. Notification: Performance of postOpt tearingSystem (initialization): time 0.003017/2.281, allocations: 0.9347 MB / 1.139 GB, free: 31.41 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/2.292, allocations: 2.41 MB / 1.142 GB, free: 29 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/2.302, allocations: 12.5 MB / 1.154 GB, free: 15.82 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01273/2.315, allocations: 0.6087 MB / 1.154 GB, free: 15.21 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003044/2.318, allocations: 0.5116 MB / 1.155 GB, free: 14.7 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 531 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],booleanStep2QS[3].y,booleanStep2QS[2].y,booleanStep2QS[1].y,booleanStep1QS[3].y,booleanStep1QS[2].y,booleanStep1QS[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1230): * Single equations (assignments): 1223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (204,1.3%)} * 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): 5 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01759/2.335, allocations: 7.923 MB / 1.163 GB, free: 6.754 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00316/2.338, allocations: 0.9069 MB / 1.164 GB, free: 5.836 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2832/2.622, allocations: 17.03 MB / 1.18 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001034/2.622, allocations: 91.66 kB / 1.18 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001302/2.622, allocations: 41.97 kB / 1.18 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001891/2.622, allocations: 46.86 kB / 1.18 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06821/2.69, allocations: 35.95 MB / 1.215 GB, free: 187.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.428e-05/2.69, allocations: 8.125 kB / 1.215 GB, free: 187.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006646/2.697, allocations: 1.422 MB / 1.217 GB, free: 187.8 MB / 0.5763 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=. Notification: Performance of postOpt tearingSystem (simulation): time 0.0032/2.7, allocations: 0.9807 MB / 1.218 GB, free: 187.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001568/2.702, allocations: 205 kB / 1.218 GB, free: 187.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01374/2.716, allocations: 17.17 MB / 1.235 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/2.716, allocations: 11.06 kB / 1.235 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03846/2.754, allocations: 24.77 MB / 1.259 GB, free: 160.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005654/2.76, allocations: 2.236 MB / 1.261 GB, free: 159.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002919/2.763, allocations: 183.7 kB / 1.261 GB, free: 159 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006557/2.769, allocations: 494.7 kB / 1.262 GB, free: 158.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002369/2.772, allocations: 0.7946 MB / 1.263 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001101/2.773, allocations: 251.7 kB / 1.263 GB, free: 157.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01085/2.784, allocations: 5.69 MB / 1.268 GB, free: 153 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4.01e-07/2.784, allocations: 0 / 1.268 GB, free: 153 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01553/2.799, allocations: 3.469 MB / 1.272 GB, free: 149.6 MB / 0.5763 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 (703): * Single equations (assignments): 695 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(204,1.3%)} * 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): 7 systems {(1,1,100.0%), (1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.04056/2.84, allocations: 25.72 MB / 1.297 GB, free: 124.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.07818/2.918, allocations: 36.13 MB / 1.332 GB, free: 88.05 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/2.918, allocations: 4.875 kB / 1.332 GB, free: 88.04 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0149/2.933, allocations: 8.751 MB / 1.341 GB, free: 79.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01705/2.95, allocations: 2.569 MB / 1.343 GB, free: 76.75 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4669/3.417, allocations: 178.8 MB / 1.518 GB, free: 115.1 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02194/3.439, allocations: 13.12 MB / 1.531 GB, free: 106.1 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01313/3.452, allocations: 3.992 MB / 1.535 GB, free: 102.2 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01272/3.465, allocations: 7.814 MB / 1.542 GB, free: 94.35 MB / 0.5763 GB Notification: Performance of SimCode: time 1.814e-06/3.465, allocations: 0 / 1.542 GB, free: 94.35 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6281/4.093, allocations: 285.3 MB / 1.821 GB, free: 55.92 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/19.78, allocations: 13.62 kB / 1.821 GB, free: 55.92 MB / 0.5763 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/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)