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.00131/0.00131, allocations: 101.6 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.52 kB / 306.6 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.0978, allocations: 50.54 MB / 357.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.246/0.3439, allocations: 24.45 MB / 381.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.3603, allocations: 7.949 MB / 389.5 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006987/0.3673, allocations: 171.2 kB / 389.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01832/0.3857, allocations: 7.936 MB / 397.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01182/0.3975, allocations: 2.734 MB / 400.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006362/0.4039, allocations: 1.704 MB / 402.1 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01771/0.4216, allocations: 11.2 MB / 413.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04362/0.4653, allocations: 26.9 MB / 440.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01163/0.4769, allocations: 5.946 MB / 446.1 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01212/0.4891, allocations: 6.584 MB / 452.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00504/0.4941, allocations: 1.715 MB / 454.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007106/0.5013, allocations: 2.156 MB / 456.6 MB, free: 8.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005675/0.507, allocations: 3.371 MB / 459.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0122/0.5192, allocations: 6.354 MB / 466.3 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02951/0.5487, allocations: 23.03 MB / 489.3 MB, free: 8.137 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.5488, allocations: 0 / 489.3 MB, free: 8.137 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.5488, allocations: 4 kB / 489.3 MB, free: 8.133 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006862/0.5495, allocations: 0 / 489.3 MB, free: 8.133 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.04468/0.5942, allocations: 13.48 MB / 0.491 GB, free: 10.55 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.5943, allocations: 12.03 kB / 0.491 GB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006065/0.6003, allocations: 1.616 MB / 0.4926 GB, free: 8.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03474/0.6351, allocations: 6.235 MB / 0.4987 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01543/0.6505, allocations: 7.073 MB / 0.5056 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009061/0.6515, allocations: 0.7226 MB / 0.5063 GB, free: 10.78 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003996/0.6555, allocations: 0.953 MB / 0.5072 GB, free: 9.828 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04021/0.6957, allocations: 16.19 MB / 0.523 GB, free: 9.582 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004216/0.6962, allocations: 11.89 kB / 0.5231 GB, free: 9.57 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003007/0.6992, allocations: 400 kB / 0.5234 GB, free: 9.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006298/0.6999, allocations: 0.5632 MB / 0.524 GB, free: 8.613 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3398/1.04, allocations: 15.12 MB / 0.5388 GB, free: 125.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07966/1.119, allocations: 53.18 MB / 0.5907 GB, free: 90.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01755/1.137, allocations: 20.11 MB / 0.6103 GB, free: 69.87 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005312/1.142, allocations: 3.676 MB / 0.6139 GB, free: 66.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005467/1.143, allocations: 273.2 kB / 0.6142 GB, free: 65.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.334e-05/1.143, allocations: 82.03 kB / 0.6143 GB, free: 65.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=453): time 7.063e-06/1.143, allocations: 4 kB / 0.6143 GB, free: 65.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=458): time 0.05013/1.193, allocations: 20.64 MB / 0.6344 GB, free: 45.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/1.193, allocations: 98.97 kB / 0.6345 GB, free: 45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008018/1.201, allocations: 4.513 MB / 0.6389 GB, free: 40.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006318/1.202, allocations: 101.7 kB / 0.639 GB, free: 40.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002284/1.204, allocations: 4.2 MB / 0.6431 GB, free: 36.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001817/1.206, allocations: 1.553 MB / 0.6446 GB, free: 34.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003236/1.209, allocations: 1.203 MB / 0.6458 GB, free: 33.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.987e-05/1.209, allocations: 305.1 kB / 0.6461 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004677/1.214, allocations: 3.092 MB / 0.6491 GB, free: 29.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005725/1.22, allocations: 5.246 MB / 0.6542 GB, free: 23.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/1.231, allocations: 8.931 MB / 0.663 GB, free: 13.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-05/1.231, allocations: 20 kB / 0.663 GB, free: 13.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01691/1.248, allocations: 9.91 MB / 0.6727 GB, free: 3.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.068e-05/1.248, allocations: 39.98 kB / 0.6727 GB, free: 3.871 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/1.248, allocations: 68 kB / 0.6728 GB, free: 3.805 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003435/1.251, allocations: 1.384 MB / 0.6741 GB, free: 2.414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004942/1.256, allocations: 1.388 MB / 0.6755 GB, free: 1.023 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0193/1.276, allocations: 12.52 MB / 0.6877 GB, free: 4.246 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005342/1.281, allocations: 355.6 kB / 0.688 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001338/1.282, allocations: 299.9 kB / 0.6883 GB, free: 3.605 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007948/1.29, allocations: 3.896 MB / 0.6921 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001598/1.292, allocations: 462.2 kB / 0.6926 GB, free: 15.24 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01641/1.308, allocations: 8.571 MB / 0.7009 GB, free: 6.613 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0114/1.32, allocations: 6.288 MB / 0.7071 GB, free: 312 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.933e-05/1.32, allocations: 12 kB / 0.7071 GB, free: 300 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.587e-05/1.32, allocations: 31.84 kB / 0.7071 GB, free: 268 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2338/1.554, allocations: 17.76 MB / 0.7245 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-05/1.554, allocations: 11.41 kB / 0.7245 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003292/1.557, allocations: 0.8094 MB / 0.7253 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003438/1.561, allocations: 1.281 MB / 0.7265 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005554/1.561, allocations: 106.9 kB / 0.7266 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01381/1.575, allocations: 11.43 MB / 0.7378 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.575, allocations: 14.44 kB / 0.7378 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01654/1.592, allocations: 11.29 MB / 0.7488 GB, free: 130.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002669/1.594, allocations: 1.089 MB / 0.7499 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009036/1.595, allocations: 93.97 kB / 0.75 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002294/1.598, allocations: 239.6 kB / 0.7502 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008524/1.598, allocations: 324.7 kB / 0.7505 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002785/1.599, allocations: 140.1 kB / 0.7506 GB, free: 129.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004608/1.603, allocations: 3.113 MB / 0.7537 GB, free: 128 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.603, allocations: 6.406 kB / 0.7537 GB, free: 128 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005876/1.609, allocations: 1.73 MB / 0.7554 GB, free: 126.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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01618/1.625, allocations: 12.31 MB / 0.7674 GB, free: 115.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03165/1.657, allocations: 15.25 MB / 0.7823 GB, free: 101.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/1.657, allocations: 0 / 0.7823 GB, free: 101.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006172/1.663, allocations: 3.981 MB / 0.7862 GB, free: 97.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00579/1.669, allocations: 1.053 MB / 0.7872 GB, free: 96.38 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1375/1.807, allocations: 76.72 MB / 0.8621 GB, free: 14.29 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0113/1.818, allocations: 6.52 MB / 0.8685 GB, free: 7.738 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00667/1.825, allocations: 2.115 MB / 0.8706 GB, free: 5.617 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005585/1.83, allocations: 3.561 MB / 0.874 GB, free: 2.055 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/1.83, allocations: 0 / 0.874 GB, free: 2.055 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3724/2.203, allocations: 141.1 MB / 1.012 GB, free: 62.42 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/2.203, allocations: 331.1 kB / 1.012 GB, free: 62.04 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.754/6.957, allocations: 5.859 kB / 1.012 GB, free: 62.04 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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