Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001142/0.001142, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2492, allocations: 50.55 MB / 408.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.04169/0.2909, allocations: 45.94 MB / 454.8 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02428/0.3153, allocations: 12.09 MB / 466.8 MB, free: 7.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01076/0.3261, allocations: 358.8 kB / 467.2 MB, free: 6.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02777/0.3539, allocations: 12.49 MB / 479.7 MB, free: 10.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01794/0.3718, allocations: 4.913 MB / 484.6 MB, free: 5.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01082/0.3827, allocations: 3.052 MB / 487.7 MB, free: 2.371 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02778/0.4105, allocations: 21.1 MB / 0.4968 GB, free: 13.2 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06977/0.4803, allocations: 41.95 MB / 0.5378 GB, free: 2.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2549/0.7353, allocations: 10.98 MB / 0.5485 GB, free: 40.62 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02031/0.7556, allocations: 12.19 MB / 0.5604 GB, free: 39.36 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00854/0.7642, allocations: 3.135 MB / 0.5635 GB, free: 39.36 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0108/0.775, allocations: 3.569 MB / 0.567 GB, free: 39.36 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009275/0.7843, allocations: 6.24 MB / 0.5731 GB, free: 38.68 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0203/0.8047, allocations: 11.92 MB / 0.5847 GB, free: 32.34 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04182/0.8465, allocations: 41.6 MB / 0.6253 GB, free: 348 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.8466, allocations: 0 / 0.6253 GB, free: 348 kB / 462.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.8466, allocations: 0 / 0.6253 GB, free: 348 kB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001207/0.8478, allocations: 0 / 0.6253 GB, free: 348 kB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.07637/0.9242, allocations: 24.39 MB / 0.6492 GB, free: 7.996 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/0.9243, allocations: 8.031 kB / 0.6492 GB, free: 7.988 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01123/0.9355, allocations: 2.948 MB / 0.652 GB, free: 5.043 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06009/0.9957, allocations: 11.48 MB / 0.6632 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02832/1.024, allocations: 13.51 MB / 0.6764 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00159/1.026, allocations: 1.361 MB / 0.6778 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008743/1.034, allocations: 1.789 MB / 0.6795 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07176/1.106, allocations: 29.59 MB / 0.7084 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008646/1.107, allocations: 27.52 kB / 0.7084 GB, free: 11.85 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005486/1.113, allocations: 0.7433 MB / 0.7092 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001063/1.114, allocations: 0.9868 MB / 0.7101 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05833/1.172, allocations: 27.3 MB / 0.7368 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5985/1.771, allocations: 94.03 MB / 0.8286 GB, free: 141.9 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03103/1.802, allocations: 52.59 MB / 0.88 GB, free: 89.05 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01094/1.813, allocations: 7.347 MB / 0.8872 GB, free: 81.69 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03287/1.846, allocations: 19.72 MB / 0.9064 GB, free: 62.25 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.173e-05/1.846, allocations: 108.5 kB / 0.9065 GB, free: 62.13 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=677): time 8.526e-06/1.846, allocations: 0 / 0.9065 GB, free: 62.13 MB / 0.5763 GB Notification: Performance of matching and sorting (n=685): time 0.07725/1.923, allocations: 38.54 MB / 0.9441 GB, free: 23.94 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/1.923, allocations: 147.1 kB / 0.9443 GB, free: 23.78 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009426/1.933, allocations: 7.155 MB / 0.9513 GB, free: 16.72 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001144/1.934, allocations: 137.7 kB / 0.9514 GB, free: 16.58 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003646/1.937, allocations: 8.085 MB / 0.9593 GB, free: 9.199 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002173/1.94, allocations: 2.441 MB / 0.9617 GB, free: 6.789 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002661/1.942, allocations: 1.875 MB / 0.9635 GB, free: 4.902 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.387e-05/1.942, allocations: 301.1 kB / 0.9638 GB, free: 4.605 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4596/2.402, allocations: 4.853 MB / 0.9685 GB, free: 185.2 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01051/2.412, allocations: 8.344 MB / 0.9767 GB, free: 181 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01552/2.428, allocations: 14 MB / 0.9904 GB, free: 172.1 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001536/2.428, allocations: 31.22 kB / 0.9904 GB, free: 172.1 MB / 0.5764 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02688/2.455, allocations: 16.11 MB / 1.006 GB, free: 165.8 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 8.862e-05/2.455, allocations: 56.91 kB / 1.006 GB, free: 165.8 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001919/2.455, allocations: 116.5 kB / 1.006 GB, free: 165.8 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005754/2.461, allocations: 2.577 MB / 1.009 GB, free: 165.1 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007396/2.469, allocations: 2.102 MB / 1.011 GB, free: 164.9 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0389/2.507, allocations: 30.79 MB / 1.041 GB, free: 142.1 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01014/2.518, allocations: 0.5368 MB / 1.041 GB, free: 141.7 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002554/2.52, allocations: 455.9 kB / 1.042 GB, free: 141.3 MB / 0.5764 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(1,1,100.0%), (18,100,38.3%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0164/2.537, allocations: 6.765 MB / 1.048 GB, free: 135.6 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00302/2.54, allocations: 0.8029 MB / 1.049 GB, free: 135.2 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03125/2.571, allocations: 13.09 MB / 1.062 GB, free: 123.2 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01438/2.585, allocations: 8.217 MB / 1.07 GB, free: 114.9 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-05/2.586, allocations: 28 kB / 1.07 GB, free: 114.9 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001259/2.586, allocations: 31.88 kB / 1.07 GB, free: 114.8 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04766/2.633, allocations: 27.95 MB / 1.097 GB, free: 86.77 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.852e-05/2.633, allocations: 4 kB / 1.097 GB, free: 86.76 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004438/2.638, allocations: 1.116 MB / 1.099 GB, free: 85.64 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005647/2.644, allocations: 2.633 MB / 1.101 GB, free: 82.98 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007051/2.644, allocations: 152 kB / 1.101 GB, free: 82.83 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02916/2.673, allocations: 35.86 MB / 1.136 GB, free: 45.82 MB / 0.5764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/2.673, allocations: 11.92 kB / 1.136 GB, free: 45.81 MB / 0.5764 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02546/2.699, allocations: 18.82 MB / 1.155 GB, free: 26.82 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004986/2.704, allocations: 1.802 MB / 1.156 GB, free: 25 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002343/2.706, allocations: 127.9 kB / 1.157 GB, free: 24.87 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004893/2.711, allocations: 395.6 kB / 1.157 GB, free: 24.48 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00162/2.713, allocations: 0.5298 MB / 1.157 GB, free: 23.95 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004662/2.713, allocations: 195.9 kB / 1.158 GB, free: 23.76 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.008691/2.722, allocations: 4.81 MB / 1.162 GB, free: 18.98 MB / 0.5764 GB Notification: Performance of sort global known variables: time 4.31e-07/2.722, allocations: 0 / 1.162 GB, free: 18.98 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.01375/2.736, allocations: 3.055 MB / 1.165 GB, free: 15.93 MB / 0.5764 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (560): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,5,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,8,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2805/3.016, allocations: 19.65 MB / 1.184 GB, free: 186.2 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.02022/3.037, allocations: 13.39 MB / 1.198 GB, free: 184.6 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/3.037, allocations: 1.5 kB / 1.198 GB, free: 184.6 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.01005/3.047, allocations: 7.579 MB / 1.205 GB, free: 181.1 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009737/3.057, allocations: 2.171 MB / 1.207 GB, free: 180.4 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1561/3.213, allocations: 103.6 MB / 1.308 GB, free: 97.21 MB / 0.592 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01579/3.228, allocations: 11.36 MB / 1.319 GB, free: 85.8 MB / 0.592 GB Notification: Performance of simCode: alias equations: time 0.008341/3.237, allocations: 3.3 MB / 1.323 GB, free: 82.49 MB / 0.592 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008966/3.246, allocations: 6.838 MB / 1.329 GB, free: 75.65 MB / 0.592 GB Notification: Performance of SimCode: time 7.01e-07/3.246, allocations: 0 / 1.329 GB, free: 75.65 MB / 0.592 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.57/3.816, allocations: 246.3 MB / 1.57 GB, free: 68 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.76/35.58, allocations: 15.05 kB / 1.57 GB, free: 68 MB / 0.6077 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches