Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_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.IMS_Characteristics,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_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.001153/0.001153, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 207.8 kB / 18.74 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.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 59.91 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2788, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.02739/0.3062, allocations: 27 MB / 435.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.3239, allocations: 8.148 MB / 443.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006015/0.33, allocations: 199.4 kB / 444.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02162/0.3517, allocations: 9.445 MB / 453.6 MB, free: 4.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01107/0.3627, allocations: 3.353 MB / 456.9 MB, free: 1.211 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005987/0.3688, allocations: 1.836 MB / 458.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01584/0.3846, allocations: 12.24 MB / 471 MB, free: 3.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03951/0.4242, allocations: 24.39 MB / 495.4 MB, free: 10.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009937/0.4342, allocations: 6.472 MB / 0.4901 GB, free: 4.035 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01063/0.4448, allocations: 7.211 MB / 0.4972 GB, free: 12.8 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004819/0.4497, allocations: 1.836 MB / 0.4989 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00647/0.4562, allocations: 2.234 MB / 0.5011 GB, free: 8.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005391/0.4616, allocations: 3.605 MB / 0.5047 GB, free: 5.117 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01173/0.4734, allocations: 6.919 MB / 0.5114 GB, free: 14.17 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03077/0.5042, allocations: 24.81 MB / 0.5356 GB, free: 5.277 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.5042, allocations: 0 / 0.5356 GB, free: 5.277 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.5042, allocations: 0 / 0.5356 GB, free: 5.277 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009325/0.5052, allocations: 4 kB / 0.5356 GB, free: 5.273 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.4502/0.9554, allocations: 14.76 MB / 0.5501 GB, free: 108.1 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.9555, allocations: 11.5 kB / 0.5501 GB, free: 108.1 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005607/0.9611, allocations: 1.788 MB / 0.5518 GB, free: 107 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04492/1.006, allocations: 8.555 MB / 0.5602 GB, free: 101.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01616/1.022, allocations: 7.669 MB / 0.5677 GB, free: 93.89 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005992/1.023, allocations: 0.806 MB / 0.5684 GB, free: 93.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004719/1.028, allocations: 1.061 MB / 0.5695 GB, free: 92.05 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03958/1.067, allocations: 18.29 MB / 0.5873 GB, free: 73.75 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004604/1.068, allocations: 19.78 kB / 0.5874 GB, free: 73.73 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004126/1.072, allocations: 447.2 kB / 0.5878 GB, free: 73.3 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006173/1.073, allocations: 0.675 MB / 0.5884 GB, free: 72.62 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03219/1.105, allocations: 17.54 MB / 0.6056 GB, free: 55.08 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08571/1.19, allocations: 59.35 MB / 0.6635 GB, free: 10.66 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03006/1.221, allocations: 37.46 MB / 0.7001 GB, free: 1.266 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006242/1.227, allocations: 4.109 MB / 0.7041 GB, free: 13.14 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004842/1.227, allocations: 274.1 kB / 0.7044 GB, free: 12.83 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.614e-05/1.227, allocations: 86.62 kB / 0.7045 GB, free: 12.73 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 6.372e-06/1.227, allocations: 0 / 0.7045 GB, free: 12.73 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.0473/1.275, allocations: 21.59 MB / 0.7256 GB, free: 7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/1.275, allocations: 107.5 kB / 0.7257 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005884/1.281, allocations: 4.187 MB / 0.7298 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006964/1.281, allocations: 105.7 kB / 0.7299 GB, free: 2.555 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002781/1.284, allocations: 4.675 MB / 0.7344 GB, free: 13.84 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002193/1.286, allocations: 1.859 MB / 0.7362 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002278/1.289, allocations: 1.359 MB / 0.7376 GB, free: 10.59 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.914e-05/1.289, allocations: 301.1 kB / 0.7378 GB, free: 10.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005214/1.294, allocations: 3.445 MB / 0.7412 GB, free: 6.848 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2486/1.543, allocations: 5.87 MB / 0.7469 GB, free: 182.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01329/1.556, allocations: 10.03 MB / 0.7567 GB, free: 177.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.569e-05/1.556, allocations: 19.72 kB / 0.7568 GB, free: 177.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01785/1.574, allocations: 10.96 MB / 0.7675 GB, free: 173.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.511e-05/1.574, allocations: 39.22 kB / 0.7675 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001407/1.574, allocations: 77.91 kB / 0.7676 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003757/1.578, allocations: 1.453 MB / 0.769 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005468/1.584, allocations: 1.61 MB / 0.7706 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01454/1.598, allocations: 11.49 MB / 0.7818 GB, free: 167.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005349/1.603, allocations: 415.2 kB / 0.7822 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001308/1.605, allocations: 337.9 kB / 0.7825 GB, free: 166.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * 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 (840): * Single equations (assignments): 838 * 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,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007129/1.612, allocations: 4.159 MB / 0.7866 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/1.613, allocations: 498.5 kB / 0.787 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/1.625, allocations: 8.478 MB / 0.7953 GB, free: 156.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00969/1.635, allocations: 7.084 MB / 0.8022 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.318e-05/1.635, allocations: 12.88 kB / 0.8023 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.716e-05/1.635, allocations: 26.53 kB / 0.8023 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02799/1.663, allocations: 18.78 MB / 0.8206 GB, free: 132 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/1.663, allocations: 4 kB / 0.8206 GB, free: 132 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003463/1.667, allocations: 0.9442 MB / 0.8215 GB, free: 131 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003223/1.67, allocations: 1.301 MB / 0.8228 GB, free: 129.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005895/1.671, allocations: 112 kB / 0.8229 GB, free: 129.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/1.683, allocations: 10.18 MB / 0.8329 GB, free: 119.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.683, allocations: 4 kB / 0.8329 GB, free: 119.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/1.699, allocations: 12.3 MB / 0.8449 GB, free: 106.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003491/1.703, allocations: 1.181 MB / 0.846 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001088/1.704, allocations: 92 kB / 0.8461 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002729/1.706, allocations: 275.8 kB / 0.8464 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006351/1.707, allocations: 355.7 kB / 0.8467 GB, free: 105 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002684/1.707, allocations: 148 kB / 0.8469 GB, free: 104.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003676/1.711, allocations: 2.819 MB / 0.8496 GB, free: 102.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/1.711, allocations: 0 / 0.8496 GB, free: 102.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006708/1.718, allocations: 1.935 MB / 0.8515 GB, free: 100.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (imsQS.rotor.stray.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 (499): * Single equations (assignments): 497 * 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,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01644/1.734, allocations: 13.05 MB / 0.8643 GB, free: 86.88 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01267/1.747, allocations: 8.738 MB / 0.8728 GB, free: 78.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.747, allocations: 2 kB / 0.8728 GB, free: 78.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00708/1.754, allocations: 4.202 MB / 0.8769 GB, free: 73.86 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006215/1.76, allocations: 1.135 MB / 0.878 GB, free: 72.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09127/1.852, allocations: 64.1 MB / 0.9406 GB, free: 5.719 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009889/1.862, allocations: 7.014 MB / 0.9474 GB, free: 14.66 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006306/1.868, allocations: 2.317 MB / 0.9497 GB, free: 12.34 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2372/2.105, allocations: 3.868 MB / 0.9535 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.503e-06/2.105, allocations: 0 / 0.9535 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1877/2.293, allocations: 148.8 MB / 1.099 GB, free: 67.32 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.31/24.6, allocations: 4.828 kB / 1.099 GB, free: 67.31 MB / 0.5607 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_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_IMS_Characteristics.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_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/IMS_Characteristics/IMS_Characteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches