Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_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.001656/0.001656, allocations: 118.1 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001809/0.001809, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001212, allocations: 63.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2645, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01336/0.2779, allocations: 11.87 MB / 420.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00774/0.2857, allocations: 3.825 MB / 424.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.2879, allocations: 71.69 kB / 424.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00292/0.2909, allocations: 0.9211 MB / 425.4 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004017/0.2949, allocations: 1.134 MB / 426.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001669/0.2966, allocations: 0.4954 MB / 427.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005434/0.3021, allocations: 4.245 MB / 431.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004558/0.3066, allocations: 3.289 MB / 434.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003002/0.3097, allocations: 1.92 MB / 436.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004405/0.3141, allocations: 2.339 MB / 438.9 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.3154, allocations: 0.4961 MB / 439.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002189/0.3176, allocations: 0.5975 MB / 440 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001967/0.3196, allocations: 1.395 MB / 441.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004266/0.3239, allocations: 2.213 MB / 443.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007677/0.3316, allocations: 6.587 MB / 450.2 MB, free: 7.945 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3316, allocations: 0 / 450.2 MB, free: 7.945 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3316, allocations: 4 kB / 450.2 MB, free: 7.941 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002106/0.3318, allocations: 0 / 450.2 MB, free: 7.941 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.0106/0.3424, allocations: 4.423 MB / 454.6 MB, free: 3.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3425, allocations: 16.03 kB / 454.6 MB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001001/0.3435, allocations: 438.6 kB / 455 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001722/0.3452, allocations: 490.2 kB / 455.5 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004528/0.3498, allocations: 2.431 MB / 457.9 MB, free: 28 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.3499, allocations: 230.2 kB / 458.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004584/0.3504, allocations: 304 kB / 458.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006793/0.3572, allocations: 4.373 MB / 462.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.542e-05/0.3573, allocations: 7.953 kB / 462.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002852/0.3576, allocations: 132 kB / 463 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/0.3577, allocations: 130 kB / 463.1 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006004/0.3638, allocations: 3.783 MB / 466.9 MB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02232/0.3861, allocations: 13.41 MB / 480.3 MB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003798/0.3899, allocations: 2.899 MB / 483.2 MB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/0.3929, allocations: 1.676 MB / 484.9 MB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002907/0.3932, allocations: 130.4 kB / 485 MB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.218e-05/0.3933, allocations: 51.88 kB / 485 MB, free: 4.281 MB / 398.1 MB Notification: Performance of pre-optimization done (n=164): time 4.368e-06/0.3933, allocations: 0 / 485 MB, free: 4.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.01918/0.4125, allocations: 9.048 MB / 494.1 MB, free: 11.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.4125, allocations: 73.41 kB / 494.2 MB, free: 10.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004011/0.4166, allocations: 2.374 MB / 496.5 MB, free: 8.559 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002045/0.4168, allocations: 61.69 kB / 496.6 MB, free: 8.492 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/0.4178, allocations: 1.501 MB / 498.1 MB, free: 6.977 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005872/0.4184, allocations: 0.6313 MB / 498.7 MB, free: 6.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006688/0.4191, allocations: 363.5 kB / 499.1 MB, free: 5.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.418e-05/0.4192, allocations: 309.1 kB / 499.4 MB, free: 5.676 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001736/0.4209, allocations: 1.124 MB / 0.4888 GB, free: 4.551 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.423, allocations: 1.571 MB / 0.4903 GB, free: 2.797 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003784/0.4268, allocations: 2.788 MB / 0.493 GB, free: 15.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.4268, allocations: 4 kB / 0.493 GB, free: 15.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006277/0.4331, allocations: 3.606 MB / 0.4966 GB, free: 12.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.4331, allocations: 15.94 kB / 0.4966 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/0.4331, allocations: 12 kB / 0.4966 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/0.4352, allocations: 0.806 MB / 0.4974 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/0.437, allocations: 455.3 kB / 0.4978 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/0.4477, allocations: 11.19 MB / 0.5087 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002202/0.45, allocations: 132 kB / 0.5089 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003812/0.4504, allocations: 79.98 kB / 0.5089 GB, free: 14.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.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 (220): * Single equations (assignments): 213 * 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%), (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): 5 systems {(2,14,100.0%), (1,1,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.002291/0.4527, allocations: 1.088 MB / 0.51 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00072/0.4534, allocations: 262.3 kB / 0.5103 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005757/0.4592, allocations: 3.305 MB / 0.5135 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.4592, allocations: 16 kB / 0.5135 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.399e-05/0.4593, allocations: 8 kB / 0.5135 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.4593, allocations: 11.97 kB / 0.5135 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.4725, allocations: 6.844 MB / 0.5202 GB, free: 3.098 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.4725, allocations: 4.219 kB / 0.5202 GB, free: 3.094 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.4739, allocations: 299.5 kB / 0.5205 GB, free: 2.801 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002369/0.4762, allocations: 0.9197 MB / 0.5214 GB, free: 1.855 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/0.4764, allocations: 43.98 kB / 0.5214 GB, free: 1.812 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01304/0.4895, allocations: 14.63 MB / 0.5357 GB, free: 2.199 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.4895, allocations: 0 / 0.5357 GB, free: 2.199 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2298/0.7193, allocations: 4.872 MB / 0.5405 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/0.7209, allocations: 0.5751 MB / 0.541 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003837/0.7213, allocations: 39.17 kB / 0.5411 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.7226, allocations: 122.6 kB / 0.5412 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003621/0.723, allocations: 147.1 kB / 0.5413 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.7231, allocations: 58.19 kB / 0.5414 GB, free: 121.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001876/0.725, allocations: 1.638 MB / 0.543 GB, free: 121.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.042e-06/0.725, allocations: 0 / 0.543 GB, free: 121.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001797/0.7268, allocations: 0.7061 MB / 0.5437 GB, free: 121.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * 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 {(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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006225/0.733, allocations: 5.531 MB / 0.5491 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004278/0.7373, allocations: 3.601 MB / 0.5526 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.7374, allocations: 3.656 kB / 0.5526 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00278/0.7401, allocations: 2.507 MB / 0.555 GB, free: 115.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003332/0.7435, allocations: 0.7229 MB / 0.5558 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03191/0.7754, allocations: 26.39 MB / 0.5815 GB, free: 89.63 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001778/0.7772, allocations: 2.529 MB / 0.584 GB, free: 87.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001634/0.7789, allocations: 0.5828 MB / 0.5846 GB, free: 86.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/0.7801, allocations: 1.265 MB / 0.5858 GB, free: 85.21 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7801, allocations: 3.828 kB / 0.5858 GB, free: 85.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/0.8805, allocations: 66.93 MB / 0.6512 GB, free: 18.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/14.52, allocations: 11.44 kB / 0.6512 GB, free: 18.84 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.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_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches