Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.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.IMC_Characteristics,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001158, 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.001229/0.001229, allocations: 198 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.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2698, allocations: 50.55 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics): time 0.02432/0.2942, allocations: 24.78 MB / 433.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01567/0.3099, allocations: 7.45 MB / 441 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004799/0.3147, allocations: 187.4 kB / 441.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01961/0.3344, allocations: 8.854 MB / 450.1 MB, free: 8.102 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.3444, allocations: 2.949 MB / 453 MB, free: 5.141 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005604/0.3501, allocations: 1.729 MB / 454.7 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01441/0.3645, allocations: 10.82 MB / 465.6 MB, free: 8.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03692/0.4014, allocations: 21.83 MB / 487.4 MB, free: 2.582 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008903/0.4104, allocations: 5.736 MB / 493.1 MB, free: 12.83 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009959/0.4204, allocations: 6.284 MB / 499.4 MB, free: 6.527 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004673/0.4251, allocations: 1.672 MB / 0.4893 GB, free: 4.855 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006017/0.4311, allocations: 2.047 MB / 0.4913 GB, free: 2.809 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004892/0.4361, allocations: 3.153 MB / 0.4944 GB, free: 15.65 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01075/0.4468, allocations: 6.102 MB / 0.5004 GB, free: 9.523 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02655/0.4734, allocations: 22.4 MB / 0.5223 GB, free: 3.055 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.4734, allocations: 0 / 0.5223 GB, free: 3.055 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.4734, allocations: 0 / 0.5223 GB, free: 3.055 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005579/0.474, allocations: 0 / 0.5223 GB, free: 3.055 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: 2620 * Number of variables: 2620 Notification: Performance of Generate backend data structure: time 0.03914/0.5132, allocations: 12.96 MB / 0.5349 GB, free: 5.973 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.5132, allocations: 8.031 kB / 0.5349 GB, free: 5.965 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005435/0.5187, allocations: 1.552 MB / 0.5364 GB, free: 4.395 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4562/0.9748, allocations: 6.258 MB / 0.5426 GB, free: 109.4 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01409/0.989, allocations: 6.924 MB / 0.5493 GB, free: 106.7 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004995/0.9895, allocations: 0.701 MB / 0.55 GB, free: 106.4 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005019/0.9945, allocations: 0.92 MB / 0.5509 GB, free: 106.1 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03275/1.027, allocations: 15.75 MB / 0.5663 GB, free: 97.06 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000262/1.028, allocations: 11.95 kB / 0.5663 GB, free: 97.05 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002421/1.03, allocations: 387.6 kB / 0.5667 GB, free: 96.68 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004213/1.03, allocations: 0.5567 MB / 0.5672 GB, free: 96.12 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02655/1.057, allocations: 14.77 MB / 0.5816 GB, free: 81.33 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07133/1.128, allocations: 52.18 MB / 0.6326 GB, free: 28.36 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/1.147, allocations: 26.47 MB / 0.6584 GB, free: 14.84 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005194/1.152, allocations: 3.21 MB / 0.6616 GB, free: 11.62 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003864/1.152, allocations: 248.2 kB / 0.6618 GB, free: 11.36 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.576e-05/1.153, allocations: 77.69 kB / 0.6619 GB, free: 11.27 MB / 478.1 MB Notification: Performance of pre-optimization done (n=398): time 5.711e-06/1.153, allocations: 0 / 0.6619 GB, free: 11.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=404): time 0.03899/1.192, allocations: 17.41 MB / 0.6789 GB, free: 9.969 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/1.192, allocations: 90.58 kB / 0.679 GB, free: 9.867 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005216/1.197, allocations: 3.712 MB / 0.6826 GB, free: 6.156 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005911/1.197, allocations: 89.7 kB / 0.6827 GB, free: 6.062 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002448/1.2, allocations: 4.127 MB / 0.6867 GB, free: 1.926 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001667/1.202, allocations: 1.45 MB / 0.6881 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001787/1.203, allocations: 1.141 MB / 0.6892 GB, free: 15.34 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.44e-05/1.204, allocations: 309.1 kB / 0.6895 GB, free: 15.04 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004007/1.208, allocations: 2.787 MB / 0.6923 GB, free: 12.25 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005371/1.213, allocations: 4.957 MB / 0.6971 GB, free: 6.293 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/1.224, allocations: 8.314 MB / 0.7052 GB, free: 12.98 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.086e-05/1.224, allocations: 20 kB / 0.7052 GB, free: 12.96 MB / 0.5138 GB Notification: Performance of matching and sorting (n=752) (initialization): time 0.01884/1.243, allocations: 9.11 MB / 0.7141 GB, free: 3.828 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001467/1.243, allocations: 41.75 kB / 0.7142 GB, free: 3.789 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/1.243, allocations: 71.98 kB / 0.7142 GB, free: 3.719 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003819/1.247, allocations: 1.23 MB / 0.7154 GB, free: 2.484 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005397/1.253, allocations: 1.318 MB / 0.7167 GB, free: 1.164 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01706/1.27, allocations: 9.921 MB / 0.7264 GB, free: 7.113 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004971/1.275, allocations: 335.6 kB / 0.7267 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001252/1.276, allocations: 284 kB / 0.727 GB, free: 6.508 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 319 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (694): * Single equations (assignments): 692 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,44,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008281/1.284, allocations: 3.72 MB / 0.7306 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001584/1.286, allocations: 413.3 kB / 0.731 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/1.301, allocations: 6.693 MB / 0.7376 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01078/1.311, allocations: 5.591 MB / 0.743 GB, free: 6.023 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.504e-05/1.311, allocations: 12 kB / 0.743 GB, free: 6.012 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.808e-05/1.312, allocations: 27.91 kB / 0.7431 GB, free: 5.984 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2839/1.595, allocations: 15.77 MB / 0.7585 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/1.596, allocations: 3.906 kB / 0.7585 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002605/1.598, allocations: 0.7206 MB / 0.7592 GB, free: 183.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002884/1.601, allocations: 1.11 MB / 0.7603 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003295/1.601, allocations: 100.4 kB / 0.7604 GB, free: 183.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/1.612, allocations: 8.85 MB / 0.769 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/1.612, allocations: 7.844 kB / 0.769 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01335/1.626, allocations: 9.863 MB / 0.7786 GB, free: 174.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002524/1.628, allocations: 0.9775 MB / 0.7796 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007996/1.629, allocations: 75.75 kB / 0.7797 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/1.631, allocations: 203.5 kB / 0.7799 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005301/1.632, allocations: 289 kB / 0.7801 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002166/1.632, allocations: 121.3 kB / 0.7803 GB, free: 173.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003119/1.635, allocations: 2.499 MB / 0.7827 GB, free: 172.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/1.635, allocations: 0 / 0.7827 GB, free: 172.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005212/1.64, allocations: 1.611 MB / 0.7843 GB, free: 172.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (389): * Single equations (assignments): 387 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,44,40.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.013/1.653, allocations: 10.6 MB / 0.7946 GB, free: 163.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01093/1.664, allocations: 7.15 MB / 0.8016 GB, free: 157.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/1.664, allocations: 4 kB / 0.8016 GB, free: 157.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005615/1.67, allocations: 3.394 MB / 0.8049 GB, free: 154.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005998/1.676, allocations: 0.9749 MB / 0.8059 GB, free: 153.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07035/1.746, allocations: 54.38 MB / 0.859 GB, free: 96.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00468/1.751, allocations: 6.191 MB / 0.865 GB, free: 90.42 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004029/1.755, allocations: 1.912 MB / 0.8669 GB, free: 88.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003504/1.759, allocations: 3.307 MB / 0.8701 GB, free: 85.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.272e-06/1.759, allocations: 0 / 0.8701 GB, free: 85.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3772/2.136, allocations: 126.9 MB / 0.994 GB, free: 161.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.98/20.12, allocations: 26.25 kB / 0.9941 GB, free: 161.6 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Characteristics/IMC_Characteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches