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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009499/0.00095, allocations: 176.2 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0392/0.0392, allocations: 8.708 MB / 16.78 MB, free: 3.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.608/1.608, allocations: 221.5 MB / 240.9 MB, free: 13.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009487/0.0009483, allocations: 100.6 kB / 293.9 MB, free: 7.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.415e-05/1.416e-05, allocations: 0 / 354.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1455, allocations: 52.55 MB / 407.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4717/0.6172, allocations: 163.7 MB / 0.5576 GB, free: 2.707 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/0.6175, allocations: 79.97 kB / 0.5576 GB, free: 2.629 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416/4.034, allocations: 0.8532 GB / 1.411 GB, free: 30.76 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.795e-06/4.034, allocations: 0 / 1.411 GB, free: 30.76 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.002801/4.037, allocations: 479 kB / 1.411 GB, free: 30.68 MB / 0.5105 GB 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.08697/4.124, allocations: 19.49 MB / 1.43 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/4.124, allocations: 6.938 kB / 1.43 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05579/4.179, allocations: 9.666 MB / 1.44 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04548/4.225, allocations: 16.23 MB / 1.456 GB, free: 16.28 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001261/4.226, allocations: 0.653 MB / 1.456 GB, free: 15.63 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0106/4.237, allocations: 1.179 MB / 1.457 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07426/4.311, allocations: 27.48 MB / 1.484 GB, free: 6.008 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6049/4.916, allocations: 30.46 MB / 1.514 GB, free: 40.17 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001376/4.918, allocations: 27.91 kB / 1.514 GB, free: 40.17 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007844/4.925, allocations: 13.72 kB / 1.514 GB, free: 40.17 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002242/4.928, allocations: 1.485 MB / 1.515 GB, free: 40.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2097/5.137, allocations: 105.2 MB / 1.618 GB, free: 7.059 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05122/5.189, allocations: 49.79 MB / 1.667 GB, free: 14.06 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01978/5.209, allocations: 9.474 MB / 1.676 GB, free: 10.38 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05535/5.264, allocations: 22.97 MB / 1.699 GB, free: 212 kB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/5.264, allocations: 132.7 kB / 1.699 GB, free: 100 kB / 0.573 GB Notification: Performance of pre-optimization done (n=892): time 2.462e-05/5.264, allocations: 0 / 1.699 GB, free: 100 kB / 0.573 GB Notification: Performance of matching and sorting (n=904): time 0.6815/5.946, allocations: 37.57 MB / 1.735 GB, free: 94.22 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002078/5.946, allocations: 169.7 kB / 1.736 GB, free: 94.12 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02544/5.971, allocations: 6.207 MB / 1.742 GB, free: 93.61 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002912/5.974, allocations: 27.83 kB / 1.742 GB, free: 93.57 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.01128/5.986, allocations: 8.696 MB / 1.75 GB, free: 88.97 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00657/5.992, allocations: 2.922 MB / 1.753 GB, free: 87.04 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002353/5.995, allocations: 0 / 1.753 GB, free: 87.04 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001224/5.996, allocations: 0.7724 MB / 1.754 GB, free: 86.71 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01646/6.013, allocations: 6.094 MB / 1.76 GB, free: 86.69 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02308/6.036, allocations: 9.625 MB / 1.769 GB, free: 82.52 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03321/6.069, allocations: 9.876 MB / 1.779 GB, free: 82.4 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000364/6.069, allocations: 31.56 kB / 1.779 GB, free: 82.4 MB / 0.573 GB Notification: Performance of matching and sorting (n=1468) (initialization): time 0.07027/6.14, allocations: 20.77 MB / 1.799 GB, free: 81.36 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001463/6.14, allocations: 52.5 kB / 1.799 GB, free: 81.36 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000236/6.14, allocations: 113.8 kB / 1.799 GB, free: 81.36 MB / 0.573 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.002008/6.142, allocations: 0.7915 MB / 1.8 GB, free: 81.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01056/6.153, allocations: 2.442 MB / 1.802 GB, free: 81.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009371/6.162, allocations: 11.08 MB / 1.813 GB, free: 75.01 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01281/6.175, allocations: 471.1 kB / 1.814 GB, free: 74.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003836/6.179, allocations: 0.5065 MB / 1.814 GB, free: 74.99 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1214): * Single equations (assignments): 1207 * 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%) 1,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005033/6.184, allocations: 437.1 kB / 1.815 GB, free: 74.8 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03531/6.219, allocations: 16.39 MB / 1.831 GB, free: 68.79 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004709/6.224, allocations: 0.8409 MB / 1.831 GB, free: 68.35 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0441/6.268, allocations: 17.91 MB / 1.849 GB, free: 57.11 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001148/6.268, allocations: 92 kB / 1.849 GB, free: 57.02 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001423/6.268, allocations: 41.86 kB / 1.849 GB, free: 56.98 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003009/6.269, allocations: 50.92 kB / 1.849 GB, free: 56.97 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09297/6.362, allocations: 34.44 MB / 1.883 GB, free: 29.39 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001151/6.362, allocations: 11.28 kB / 1.883 GB, free: 29.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008394/6.37, allocations: 1.487 MB / 1.884 GB, free: 28.25 MB / 0.573 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.002896/6.373, allocations: 0.8259 MB / 1.885 GB, free: 27.57 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00271/6.376, allocations: 72.09 kB / 1.885 GB, free: 27.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01315/6.389, allocations: 15.12 MB / 1.9 GB, free: 12.74 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.357e-05/6.389, allocations: 15.03 kB / 1.9 GB, free: 12.73 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5674/6.957, allocations: 27.86 MB / 1.927 GB, free: 83.75 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009122/6.966, allocations: 2.235 MB / 1.929 GB, free: 83.66 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004707/6.971, allocations: 21.25 kB / 1.929 GB, free: 83.66 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009326/6.98, allocations: 440.2 kB / 1.93 GB, free: 83.66 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003518/6.984, allocations: 0.7952 MB / 1.93 GB, free: 83.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001932/6.986, allocations: 257.9 kB / 1.931 GB, free: 83.64 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01298/6.999, allocations: 4.594 MB / 1.935 GB, free: 83.43 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.082e-06/6.999, allocations: 0 / 1.935 GB, free: 83.43 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02692/7.026, allocations: 3.127 MB / 1.938 GB, free: 83.43 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,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,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (701): * Single equations (assignments): 693 * 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,(1,100.0%) 8,(2,100.0%) 26,(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.05906/7.085, allocations: 29.14 MB / 1.967 GB, free: 79.48 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03294/7.118, allocations: 15.59 MB / 1.982 GB, free: 78.57 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.949e-05/7.118, allocations: 6.391 kB / 1.982 GB, free: 78.57 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01805/7.136, allocations: 8.571 MB / 1.99 GB, free: 77.65 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01531/7.151, allocations: 1.748 MB / 1.992 GB, free: 77.62 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1166/7.268, allocations: 38.48 MB / 2.03 GB, free: 68.16 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03561/7.303, allocations: 13.45 MB / 2.043 GB, free: 59.51 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01859/7.322, allocations: 3.904 MB / 2.046 GB, free: 56.95 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01831/7.34, allocations: 7.717 MB / 2.054 GB, free: 49.74 MB / 0.573 GB Notification: Performance of SimCode: time 1.884e-06/7.34, allocations: 0 / 2.054 GB, free: 49.74 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9407/8.281, allocations: 258.2 MB / 2.306 GB, free: 5.301 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/8.281, allocations: 139.4 kB / 2.306 GB, free: 5.105 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/19.78, allocations: 3.938 kB / 2.306 GB, free: 5.102 MB / 0.5886 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)