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/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/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.001779/0.001779, allocations: 173 kB / 15.15 MB, free: 1.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.06817/0.06817, allocations: 8.784 MB / 24.67 MB, free: 132 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.345/1.345, allocations: 223.3 MB / 250.8 MB, free: 9.379 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 95.12 kB / 304.1 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003632, allocations: 12 kB / 370.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1231, allocations: 52.54 MB / 423.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.2373/0.3606, allocations: 43.28 MB / 466.4 MB, free: 18.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02081/0.3814, allocations: 11.99 MB / 478.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007758/0.3892, allocations: 342.9 kB / 478.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009997/0.3992, allocations: 2.434 MB / 481.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01522/0.4145, allocations: 4.526 MB / 485.7 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008141/0.4227, allocations: 2.213 MB / 487.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.04742/0.4701, allocations: 26.29 MB / 0.5021 GB, free: 3.977 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07362/0.5438, allocations: 36.52 MB / 0.5378 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0198/0.5636, allocations: 8.92 MB / 0.5465 GB, free: 6.562 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01986/0.5835, allocations: 10.26 MB / 0.5565 GB, free: 12.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007317/0.5909, allocations: 1.41 MB / 0.5579 GB, free: 10.86 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01329/0.6042, allocations: 1.839 MB / 0.5597 GB, free: 9.016 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01051/0.6148, allocations: 4.563 MB / 0.5642 GB, free: 4.438 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0128/0.6276, allocations: 4.597 MB / 0.5687 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4605/1.088, allocations: 41.17 MB / 0.6089 GB, free: 41.42 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/1.088, allocations: 2.375 kB / 0.6089 GB, free: 41.42 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/1.088, allocations: 0 / 0.6089 GB, free: 41.42 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001229/1.089, allocations: 0 / 0.6089 GB, free: 41.42 MB / 446.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.06666/1.156, allocations: 23.11 MB / 0.6314 GB, free: 30.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/1.156, allocations: 9.938 kB / 0.6314 GB, free: 30.33 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01289/1.169, allocations: 2.987 MB / 0.6344 GB, free: 29.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07019/1.239, allocations: 13.97 MB / 0.648 GB, free: 24.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03432/1.274, allocations: 14.34 MB / 0.662 GB, free: 20.24 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001533/1.275, allocations: 1.578 MB / 0.6635 GB, free: 19.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008733/1.284, allocations: 2.08 MB / 0.6656 GB, free: 17.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0925/1.376, allocations: 34.57 MB / 0.6993 GB, free: 9.969 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001147/1.378, allocations: 34.61 kB / 0.6994 GB, free: 9.938 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009265/1.387, allocations: 0.8546 MB / 0.7002 GB, free: 9.102 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001348/1.388, allocations: 1.149 MB / 0.7013 GB, free: 7.949 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07873/1.467, allocations: 32.18 MB / 0.7328 GB, free: 7.758 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5416/2.009, allocations: 107.9 MB / 0.8382 GB, free: 122.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04353/2.052, allocations: 50.78 MB / 0.8877 GB, free: 77.84 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01842/2.071, allocations: 9.79 MB / 0.8973 GB, free: 69.29 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05827/2.129, allocations: 22.67 MB / 0.9194 GB, free: 46.81 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/2.129, allocations: 129.9 kB / 0.9196 GB, free: 46.68 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=894): time 1.341e-05/2.129, allocations: 0 / 0.9196 GB, free: 46.68 MB / 0.5138 GB Notification: Performance of matching and sorting (n=906): time 0.08179/2.211, allocations: 39.49 MB / 0.9581 GB, free: 6.754 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/2.211, allocations: 180.5 kB / 0.9583 GB, free: 6.559 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01987/2.231, allocations: 8.278 MB / 0.9664 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002895/2.234, allocations: 173.7 kB / 0.9666 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.008074/2.242, allocations: 8.685 MB / 0.975 GB, free: 5.375 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.004575/2.247, allocations: 3.054 MB / 0.978 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002346/2.249, allocations: 236 kB / 0.9782 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.001181/2.25, allocations: 0.7739 MB / 0.979 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3273/2.578, allocations: 6.21 MB / 0.9851 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01548/2.593, allocations: 9.941 MB / 0.9948 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01769/2.611, allocations: 8.279 MB / 1.003 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003858/2.611, allocations: 34 kB / 1.003 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.05415/2.665, allocations: 20.23 MB / 1.023 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004863/2.666, allocations: 59.61 kB / 1.023 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006935/2.667, allocations: 116.1 kB / 1.023 GB, free: 158.9 MB / 0.5294 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.003485/2.67, allocations: 0.9467 MB / 1.024 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01092/2.681, allocations: 2.409 MB / 1.026 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/2.692, allocations: 11.51 MB / 1.037 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01077/2.703, allocations: 0.6168 MB / 1.038 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00314/2.706, allocations: 0.5108 MB / 1.038 GB, free: 148.7 MB / 0.5294 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 (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 (1230): * Single equations (assignments): 1223 * 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 {(3,77.8%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01955/2.725, allocations: 7.919 MB / 1.046 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004449/2.73, allocations: 0.8993 MB / 1.047 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0402/2.77, allocations: 17.03 MB / 1.064 GB, free: 127 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.163e-05/2.77, allocations: 92 kB / 1.064 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001432/2.77, allocations: 41.25 kB / 1.064 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000235/2.771, allocations: 46.45 kB / 1.064 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07977/2.85, allocations: 35.92 MB / 1.099 GB, free: 90.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.966e-05/2.85, allocations: 8 kB / 1.099 GB, free: 90.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00634/2.857, allocations: 1.42 MB / 1.1 GB, free: 89.44 MB / 0.5294 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.002835/2.86, allocations: 0.978 MB / 1.101 GB, free: 88.45 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001568/2.861, allocations: 205.6 kB / 1.101 GB, free: 88.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01178/2.873, allocations: 15.74 MB / 1.117 GB, free: 71.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/2.873, allocations: 15.92 kB / 1.117 GB, free: 71.76 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04289/2.916, allocations: 24.72 MB / 1.141 GB, free: 47.24 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007581/2.924, allocations: 2.246 MB / 1.143 GB, free: 44.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005008/2.929, allocations: 180 kB / 1.143 GB, free: 44.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008138/2.937, allocations: 0.4995 MB / 1.144 GB, free: 44.29 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002798/2.94, allocations: 0.7927 MB / 1.145 GB, free: 43.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001868/2.942, allocations: 257.6 kB / 1.145 GB, free: 43.25 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01367/2.955, allocations: 5.626 MB / 1.15 GB, free: 37.63 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.91e-07/2.955, allocations: 4 kB / 1.15 GB, free: 37.63 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.02064/2.976, allocations: 3.469 MB / 1.154 GB, free: 34.16 MB / 0.5294 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 (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,(3,88.9%) 25,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.379/3.355, allocations: 25.63 MB / 1.179 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.03237/3.387, allocations: 16.05 MB / 1.194 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/3.387, allocations: 2.656 kB / 1.194 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01771/3.405, allocations: 8.756 MB / 1.203 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02105/3.426, allocations: 2.456 MB / 1.205 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2758/3.702, allocations: 125.1 MB / 1.328 GB, free: 41.57 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03269/3.735, allocations: 13.12 MB / 1.34 GB, free: 28.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01803/3.753, allocations: 3.995 MB / 1.344 GB, free: 24.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01531/3.768, allocations: 7.802 MB / 1.352 GB, free: 16.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.232e-06/3.768, allocations: 0 / 1.352 GB, free: 16.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.01/4.779, allocations: 275.8 MB / 1.621 GB, free: 138.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/4.779, allocations: 242.2 kB / 1.622 GB, free: 138.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.396/13.18, allocations: 8.438 kB / 1.622 GB, free: 138.4 MB / 0.545 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)