Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001034/0.001034, allocations: 196.3 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.239/1.239, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008346/0.0008347, allocations: 94.77 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002251/0.0002252, allocations: 11.92 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1907, allocations: 51.28 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.005077/0.1959, allocations: 6.811 MB / 414.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.1995, allocations: 2.265 MB / 417.2 MB, free: 18.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009431/0.2005, allocations: 47.81 kB / 417.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006917/0.2012, allocations: 314 kB / 417.6 MB, free: 18.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001602/0.2028, allocations: 0.731 MB / 418.3 MB, free: 17.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.2034, allocations: 275.5 kB / 418.6 MB, free: 17.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002493/0.2059, allocations: 3.264 MB / 421.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.2078, allocations: 2.416 MB / 424.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009486/0.2087, allocations: 1.008 MB / 425.2 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009461/0.2097, allocations: 1.331 MB / 426.6 MB, free: 9.105 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001918/0.2099, allocations: 156 kB / 426.7 MB, free: 8.953 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005571/0.2104, allocations: 271.9 kB / 427 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.2108, allocations: 0.6423 MB / 427.6 MB, free: 8.043 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008437/0.2117, allocations: 1.288 MB / 428.9 MB, free: 6.742 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.2137, allocations: 3.749 MB / 432.7 MB, free: 2.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2137, allocations: 0 / 432.7 MB, free: 2.984 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2137, allocations: 0 / 432.7 MB, free: 2.984 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.382e-05/0.2138, allocations: 0 / 432.7 MB, free: 2.984 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.005708/0.2195, allocations: 3.134 MB / 435.8 MB, free: 15.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2195, allocations: 8.031 kB / 435.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006672/0.2202, allocations: 441.1 kB / 436.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003655/0.2239, allocations: 0.7624 MB / 437 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003067/0.227, allocations: 1.753 MB / 438.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.2271, allocations: 197.7 kB / 439 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003894/0.2275, allocations: 267.9 kB / 439.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005613/0.2331, allocations: 3.607 MB / 442.8 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.446e-05/0.2332, allocations: 4 kB / 442.8 MB, free: 8.637 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.2334, allocations: 108 kB / 442.9 MB, free: 8.531 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.603e-05/0.2335, allocations: 105.4 kB / 443 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004708/0.2382, allocations: 3.109 MB / 446.1 MB, free: 5.305 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01456/0.2528, allocations: 10.42 MB / 456.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00456/0.2574, allocations: 4.565 MB / 461.1 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.2588, allocations: 0.9529 MB / 462.1 MB, free: 4.367 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003722/0.2625, allocations: 2.662 MB / 464.7 MB, free: 1.562 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/0.2626, allocations: 55.36 kB / 464.8 MB, free: 1.496 MB / 330.7 MB Notification: Performance of pre-optimization done (n=104): time 2.605e-06/0.2626, allocations: 0 / 464.8 MB, free: 1.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.006012/0.2686, allocations: 2.7 MB / 467.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.2687, allocations: 93.92 kB / 467.6 MB, free: 14.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/0.2704, allocations: 1.375 MB / 469 MB, free: 13.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.897e-05/0.2705, allocations: 41.7 kB / 469 MB, free: 13.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007275/0.2713, allocations: 1.172 MB / 470.2 MB, free: 12.01 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.2715, allocations: 362.8 kB / 470.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.996e-05/0.2716, allocations: 24 kB / 470.6 MB, free: 11.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2717, allocations: 353.9 kB / 470.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008752/0.2726, allocations: 0.5686 MB / 471.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.2737, allocations: 0.8606 MB / 472.3 MB, free: 9.734 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001937/0.2756, allocations: 1.473 MB / 473.8 MB, free: 8.145 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.2756, allocations: 4 kB / 473.8 MB, free: 8.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.0031/0.2787, allocations: 1.976 MB / 475.8 MB, free: 6.152 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.2788, allocations: 12 kB / 475.8 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.2788, allocations: 8 kB / 475.8 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009046/0.2797, allocations: 399 kB / 476.2 MB, free: 5.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007828/0.2805, allocations: 227.6 kB / 476.4 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006441/0.2869, allocations: 5.984 MB / 482.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009248/0.2879, allocations: 146.8 kB / 482.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.921e-05/0.288, allocations: 51.94 kB / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (110): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,100.0%) 19,(2,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001313/0.2893, allocations: 0.8604 MB / 483.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.2895, allocations: 142.2 kB / 483.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002703/0.2922, allocations: 1.671 MB / 485.3 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.168e-06/0.2922, allocations: 8 kB / 485.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.2922, allocations: 12 kB / 485.3 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.2923, allocations: 7.969 kB / 485.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005627/0.2979, allocations: 3.934 MB / 489.2 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.2979, allocations: 4 kB / 489.2 MB, free: 8.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005403/0.2985, allocations: 139.8 kB / 489.4 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008671/0.2993, allocations: 386 kB / 489.7 MB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.307e-05/0.2994, allocations: 35.97 kB / 489.8 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006319/0.3058, allocations: 5.97 MB / 495.7 MB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3058, allocations: 0 / 495.7 MB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003631/0.3094, allocations: 2.504 MB / 498.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003879/0.3098, allocations: 247.3 kB / 498.5 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.31, allocations: 24 kB / 498.5 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007517/0.3108, allocations: 95.91 kB / 498.6 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002533/0.311, allocations: 104.6 kB / 498.7 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.387e-05/0.3111, allocations: 31.92 kB / 498.7 MB, free: 14.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001292/0.3124, allocations: 0.9634 MB / 499.7 MB, free: 13.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3124, allocations: 0 / 499.7 MB, free: 13.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001697/0.3141, allocations: 0.6765 MB / 0.4887 GB, free: 12.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,loss_m.Phi.re,loss_m.Phi.im) * 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 (64): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,100.0%) 21,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003964/0.3181, allocations: 3.112 MB / 0.4917 GB, free: 9.656 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002848/0.321, allocations: 1.801 MB / 0.4935 GB, free: 7.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.321, allocations: 320 / 0.4935 GB, free: 7.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.3227, allocations: 1.144 MB / 0.4946 GB, free: 6.652 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.3246, allocations: 296.2 kB / 0.4949 GB, free: 6.367 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1653/0.4899, allocations: 12.73 MB / 0.5073 GB, free: 89.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001672/0.4916, allocations: 2.118 MB / 0.5094 GB, free: 88.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008774/0.4925, allocations: 0.8819 MB / 0.5102 GB, free: 87.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.433e-06/0.4925, allocations: 0.9375 kB / 0.5102 GB, free: 87.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.478/4.97, allocations: 61.92 MB / 0.5707 GB, free: 29.81 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches