Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_cpp_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_cpp_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/Complex trunk/package.mo): time 0.0009476/0.0009476, allocations: 195.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007367/0.0007368, allocations: 100.6 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.0002681, allocations: 7.984 kB / 356.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1868, allocations: 51.29 MB / 408.2 MB, free: 27.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01495/0.2018, allocations: 21.77 MB / 429.9 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.2123, allocations: 7.414 MB / 437.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002732/0.2151, allocations: 167.5 kB / 437.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003365/0.2184, allocations: 1.336 MB / 438.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006838/0.2253, allocations: 2.5 MB / 441.3 MB, free: 10.31 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003655/0.229, allocations: 1.25 MB / 442.6 MB, free: 9.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01419/0.2432, allocations: 13.69 MB / 456.3 MB, free: 11.33 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03416/0.2773, allocations: 23.04 MB / 479.3 MB, free: 4.145 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006192/0.2836, allocations: 4.342 MB / 483.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006735/0.2903, allocations: 4.799 MB / 488.5 MB, free: 10.97 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002039/0.2924, allocations: 0.6641 MB / 489.1 MB, free: 10.31 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003934/0.2963, allocations: 1.074 MB / 490.2 MB, free: 9.234 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002598/0.299, allocations: 2.06 MB / 492.3 MB, free: 7.168 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006982/0.306, allocations: 4.797 MB / 497.1 MB, free: 2.344 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3344/0.6404, allocations: 19.62 MB / 0.5046 GB, free: 34.96 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.6404, allocations: 1 kB / 0.5046 GB, free: 34.96 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6404, allocations: 0 / 0.5046 GB, free: 34.96 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0005065/0.6409, allocations: 0 / 0.5046 GB, free: 34.96 MB / 378.8 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.02772/0.6687, allocations: 11.26 MB / 0.5156 GB, free: 31.77 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.6687, allocations: 12.59 kB / 0.5156 GB, free: 31.77 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004518/0.6732, allocations: 1.611 MB / 0.5171 GB, free: 31.63 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0303/0.7035, allocations: 6.264 MB / 0.5233 GB, free: 30.48 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01315/0.7167, allocations: 7.102 MB / 0.5302 GB, free: 28.54 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005751/0.7173, allocations: 0.7276 MB / 0.5309 GB, free: 28.52 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003121/0.7205, allocations: 0.9533 MB / 0.5318 GB, free: 28.52 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03214/0.7526, allocations: 16.11 MB / 0.5476 GB, free: 20.36 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003773/0.753, allocations: 22.8 kB / 0.5476 GB, free: 20.34 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002493/0.7555, allocations: 405.6 kB / 0.548 GB, free: 20.26 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000476/0.756, allocations: 0.5614 MB / 0.5485 GB, free: 19.73 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02538/0.7814, allocations: 15.06 MB / 0.5632 GB, free: 6.383 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07948/0.8609, allocations: 53.33 MB / 0.6153 GB, free: 0.7578 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01848/0.8794, allocations: 20.09 MB / 0.6349 GB, free: 10.71 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005482/0.8849, allocations: 3.682 MB / 0.6385 GB, free: 7.031 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004905/0.8855, allocations: 270.2 kB / 0.6388 GB, free: 6.746 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.43e-05/0.8855, allocations: 82.09 kB / 0.6389 GB, free: 6.656 MB / 458.8 MB Notification: Performance of pre-optimization done (n=453): time 6.272e-06/0.8856, allocations: 0 / 0.6389 GB, free: 6.656 MB / 458.8 MB Notification: Performance of matching and sorting (n=458): time 0.05212/0.9377, allocations: 20.67 MB / 0.659 GB, free: 1.98 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.9378, allocations: 98.97 kB / 0.6591 GB, free: 1.871 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006731/0.9445, allocations: 4.475 MB / 0.6635 GB, free: 13.38 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007155/0.9453, allocations: 101.6 kB / 0.6636 GB, free: 13.27 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002864/0.9481, allocations: 4.207 MB / 0.6677 GB, free: 9.039 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001392/0.9495, allocations: 1.546 MB / 0.6692 GB, free: 7.504 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003247/0.9499, allocations: 124 kB / 0.6693 GB, free: 7.383 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003192/0.9502, allocations: 0.5584 MB / 0.6699 GB, free: 6.816 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00442/0.9546, allocations: 3.081 MB / 0.6729 GB, free: 3.73 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005652/0.9603, allocations: 5.229 MB / 0.678 GB, free: 13.56 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01122/0.9715, allocations: 8.914 MB / 0.6867 GB, free: 3.965 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.632e-05/0.9716, allocations: 24 kB / 0.6867 GB, free: 3.941 MB / 0.4949 GB Notification: Performance of matching and sorting (n=800) (initialization): time 0.1905/1.162, allocations: 9.867 MB / 0.6964 GB, free: 183.4 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 5.597e-05/1.162, allocations: 35.03 kB / 0.6964 GB, free: 183.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/1.162, allocations: 70.03 kB / 0.6965 GB, free: 183.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003337/1.166, allocations: 1.364 MB / 0.6978 GB, free: 183.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004713/1.17, allocations: 1.387 MB / 0.6992 GB, free: 183.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/1.184, allocations: 11.66 MB / 0.7105 GB, free: 177 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004467/1.189, allocations: 356.2 kB / 0.7109 GB, free: 176.9 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00057/1.189, allocations: 301.4 kB / 0.7112 GB, free: 176.8 MB / 0.4949 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005011/1.195, allocations: 3.887 MB / 0.715 GB, free: 174.9 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007567/1.195, allocations: 460.7 kB / 0.7154 GB, free: 174.9 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/1.207, allocations: 8.561 MB / 0.7238 GB, free: 171.5 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008419/1.215, allocations: 6.274 MB / 0.7299 GB, free: 167.6 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/1.215, allocations: 12 kB / 0.7299 GB, free: 167.6 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.528e-05/1.215, allocations: 27.84 kB / 0.7299 GB, free: 167.6 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02184/1.237, allocations: 17.74 MB / 0.7473 GB, free: 151.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/1.237, allocations: 8 kB / 0.7473 GB, free: 151.5 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002948/1.24, allocations: 0.7996 MB / 0.748 GB, free: 150.7 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002942/1.243, allocations: 1.274 MB / 0.7493 GB, free: 149.4 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002539/1.243, allocations: 111.9 kB / 0.7494 GB, free: 149.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/1.255, allocations: 10.57 MB / 0.7597 GB, free: 138.6 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/1.255, allocations: 11.94 kB / 0.7597 GB, free: 138.6 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/1.268, allocations: 11.27 MB / 0.7707 GB, free: 127.1 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/1.27, allocations: 1.1 MB / 0.7718 GB, free: 126 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007944/1.271, allocations: 92 kB / 0.7719 GB, free: 125.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002327/1.274, allocations: 243.7 kB / 0.7721 GB, free: 125.7 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008224/1.274, allocations: 323.5 kB / 0.7724 GB, free: 125.4 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/1.275, allocations: 140 kB / 0.7726 GB, free: 125.2 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003568/1.278, allocations: 3.088 MB / 0.7756 GB, free: 122.1 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.91e-07/1.278, allocations: 0 / 0.7756 GB, free: 122.1 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.00514/1.283, allocations: 1.732 MB / 0.7773 GB, free: 120.4 MB / 0.4949 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0175/1.301, allocations: 12.28 MB / 0.7893 GB, free: 108.1 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01193/1.313, allocations: 8.001 MB / 0.7971 GB, free: 100.1 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.313, allocations: 5.641 kB / 0.7971 GB, free: 100.1 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.005881/1.319, allocations: 3.968 MB / 0.801 GB, free: 96.12 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009407/1.328, allocations: 1.008 MB / 0.8019 GB, free: 95.13 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09488/1.423, allocations: 52.99 MB / 0.8537 GB, free: 39.72 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00753/1.431, allocations: 6.334 MB / 0.8599 GB, free: 33.36 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005267/1.436, allocations: 3.62 MB / 0.8634 GB, free: 29.73 MB / 0.4949 GB Notification: Performance of SimCode: time 9.42e-07/1.436, allocations: 4 kB / 0.8634 GB, free: 29.73 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.803/10.24, allocations: 260.9 MB / 1.118 GB, free: 152.5 MB / 0.4949 GB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches