Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001101/0.001101, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001134/0.001134, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 59.84 kB / 307.1 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09042/0.09171, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.1976/0.2893, allocations: 24.88 MB / 382.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0189/0.3083, allocations: 8.058 MB / 390.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007214/0.3156, allocations: 181.9 kB / 390.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01824/0.3339, allocations: 8.373 MB / 399.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01075/0.3447, allocations: 3.019 MB / 402.1 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006455/0.3511, allocations: 1.831 MB / 403.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0156/0.3668, allocations: 11.14 MB / 415.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03569/0.4025, allocations: 23.48 MB / 438.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01139/0.414, allocations: 5.888 MB / 444.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01287/0.4269, allocations: 6.573 MB / 451 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004911/0.4318, allocations: 1.715 MB / 452.7 MB, free: 13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007224/0.4391, allocations: 2.16 MB / 454.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004893/0.444, allocations: 3.348 MB / 458.3 MB, free: 7.484 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01174/0.4558, allocations: 6.366 MB / 464.6 MB, free: 1.094 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03186/0.4876, allocations: 23.03 MB / 487.7 MB, free: 9.996 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.4877, allocations: 0 / 487.7 MB, free: 9.996 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4877, allocations: 0 / 487.7 MB, free: 9.996 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005815/0.4883, allocations: 0 / 487.7 MB, free: 9.996 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04568/0.534, allocations: 13.47 MB / 0.4894 GB, free: 12.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.534, allocations: 8.031 kB / 0.4894 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005513/0.5396, allocations: 1.616 MB / 0.491 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0362/0.5758, allocations: 6.235 MB / 0.4971 GB, free: 4.535 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/0.5918, allocations: 7.08 MB / 0.504 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001184/0.5931, allocations: 0.7265 MB / 0.5047 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004928/0.598, allocations: 0.9491 MB / 0.5056 GB, free: 11.69 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03692/0.6349, allocations: 16.17 MB / 0.5214 GB, free: 11.44 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002363/0.6352, allocations: 15.83 kB / 0.5214 GB, free: 11.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001711/0.6369, allocations: 411.9 kB / 0.5218 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005007/0.6375, allocations: 0.5554 MB / 0.5223 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3354/0.9728, allocations: 15.11 MB / 0.5371 GB, free: 125.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07572/1.049, allocations: 53.19 MB / 0.589 GB, free: 90.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01526/1.064, allocations: 20.1 MB / 0.6087 GB, free: 71.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004883/1.069, allocations: 3.63 MB / 0.6122 GB, free: 67.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00038/1.069, allocations: 272.6 kB / 0.6125 GB, free: 67.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/1.069, allocations: 82 kB / 0.6126 GB, free: 67.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=447): time 6.512e-06/1.069, allocations: 0 / 0.6126 GB, free: 67.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=452): time 0.0446/1.114, allocations: 20.64 MB / 0.6327 GB, free: 46.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/1.114, allocations: 98.95 kB / 0.6328 GB, free: 46.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00526/1.119, allocations: 4.509 MB / 0.6372 GB, free: 42.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007016/1.12, allocations: 97.7 kB / 0.6373 GB, free: 42.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001831/1.122, allocations: 4.215 MB / 0.6414 GB, free: 37.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001134/1.123, allocations: 1.531 MB / 0.6429 GB, free: 36.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00146/1.124, allocations: 1.188 MB / 0.6441 GB, free: 35.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.198e-05/1.124, allocations: 305.1 kB / 0.6444 GB, free: 34.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003749/1.128, allocations: 3.065 MB / 0.6474 GB, free: 31.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004609/1.133, allocations: 5.219 MB / 0.6525 GB, free: 25.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009373/1.142, allocations: 8.864 MB / 0.6611 GB, free: 15.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.773e-05/1.142, allocations: 20 kB / 0.6611 GB, free: 15.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01554/1.158, allocations: 9.862 MB / 0.6708 GB, free: 5.844 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/1.158, allocations: 36 kB / 0.6708 GB, free: 5.809 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/1.158, allocations: 68.34 kB / 0.6709 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003621/1.162, allocations: 1.415 MB / 0.6722 GB, free: 4.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005416/1.167, allocations: 1.392 MB / 0.6736 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01704/1.184, allocations: 12.68 MB / 0.686 GB, free: 5.984 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005079/1.189, allocations: 359.4 kB / 0.6863 GB, free: 5.633 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001569/1.191, allocations: 288 kB / 0.6866 GB, free: 5.352 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007086/1.198, allocations: 3.887 MB / 0.6904 GB, free: 1.453 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/1.199, allocations: 458.3 kB / 0.6908 GB, free: 1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01384/1.213, allocations: 8.524 MB / 0.6992 GB, free: 8.422 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01176/1.225, allocations: 6.244 MB / 0.7053 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.271e-05/1.225, allocations: 12 kB / 0.7053 GB, free: 2.145 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.774e-05/1.225, allocations: 23.91 kB / 0.7053 GB, free: 2.121 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2463/1.471, allocations: 17.68 MB / 0.7226 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.451e-05/1.471, allocations: 9.656 kB / 0.7226 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00338/1.475, allocations: 0.8055 MB / 0.7233 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00361/1.478, allocations: 1.299 MB / 0.7246 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006714/1.479, allocations: 106.6 kB / 0.7247 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0133/1.492, allocations: 11.57 MB / 0.736 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.492, allocations: 17.66 kB / 0.736 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/1.508, allocations: 11.2 MB / 0.747 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003227/1.511, allocations: 1.084 MB / 0.748 GB, free: 130.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/1.512, allocations: 93.94 kB / 0.7481 GB, free: 130.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002518/1.515, allocations: 231.8 kB / 0.7483 GB, free: 130.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006737/1.516, allocations: 334 kB / 0.7487 GB, free: 130.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/1.516, allocations: 137.9 kB / 0.7488 GB, free: 130.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004301/1.52, allocations: 3.112 MB / 0.7518 GB, free: 129 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.52, allocations: 0 / 0.7518 GB, free: 129 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00615/1.526, allocations: 1.726 MB / 0.7535 GB, free: 127.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * 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 (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01559/1.542, allocations: 12.22 MB / 0.7654 GB, free: 116.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0314/1.573, allocations: 14.98 MB / 0.7801 GB, free: 102.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/1.573, allocations: 7.938 kB / 0.7801 GB, free: 102.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006782/1.58, allocations: 3.925 MB / 0.7839 GB, free: 99.41 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005602/1.586, allocations: 1.053 MB / 0.7849 GB, free: 98.52 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1028/1.689, allocations: 72.56 MB / 0.8558 GB, free: 20.58 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01033/1.699, allocations: 6.524 MB / 0.8622 GB, free: 14.02 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006696/1.706, allocations: 2.111 MB / 0.8642 GB, free: 11.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005914/1.712, allocations: 3.565 MB / 0.8677 GB, free: 8.34 MB / 478.1 MB Notification: Performance of SimCode: time 1.272e-06/1.712, allocations: 3.5 kB / 0.8677 GB, free: 8.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4039/2.116, allocations: 140.8 MB / 1.005 GB, free: 68.31 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/14.46, allocations: 16.48 kB / 1.005 GB, free: 68.29 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_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_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches