Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000849/0.000849, allocations: 93.94 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 195 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002368/0.0002368, allocations: 8 kB / 306.8 MB, free: 1.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1148, allocations: 51.5 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.00743/0.1223, allocations: 6.793 MB / 365.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005227/0.1276, allocations: 2.259 MB / 367.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.1287, allocations: 51.75 kB / 367.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008704/0.1296, allocations: 318 kB / 367.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002306/0.1319, allocations: 0.731 MB / 368.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007884/0.1327, allocations: 263.6 kB / 368.7 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004256/0.137, allocations: 3.254 MB / 372 MB, free: 244 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2225/0.3596, allocations: 1.993 MB / 374 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00213/0.3618, allocations: 1.02 MB / 375 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002727/0.3645, allocations: 1.321 MB / 376.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006302/0.3652, allocations: 156.8 kB / 376.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.3664, allocations: 278.4 kB / 376.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00072/0.3671, allocations: 0.6381 MB / 377.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008233/0.368, allocations: 0.5513 MB / 377.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005816/0.3738, allocations: 3.748 MB / 381.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.3738, allocations: 0 / 381.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.769e-06/0.3738, allocations: 0 / 381.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001897/0.374, allocations: 0 / 381.7 MB, free: 8.641 MB / 302.1 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.009344/0.3834, allocations: 3.164 MB / 384.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.3835, allocations: 8.75 kB / 384.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001065/0.3845, allocations: 438.1 kB / 385.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004057/0.3886, allocations: 0.7587 MB / 386 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003187/0.3918, allocations: 1.705 MB / 387.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.392, allocations: 198.3 kB / 387.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004394/0.3924, allocations: 266.7 kB / 388.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006757/0.3992, allocations: 3.61 MB / 391.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.282e-05/0.3993, allocations: 1.375 kB / 391.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002835/0.3996, allocations: 108.7 kB / 391.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00012/0.3997, allocations: 99.72 kB / 392 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005319/0.405, allocations: 3.104 MB / 395.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01751/0.4225, allocations: 10.42 MB / 405.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004498/0.4271, allocations: 4.573 MB / 410.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/0.4286, allocations: 0.957 MB / 411.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004219/0.4328, allocations: 2.637 MB / 413.7 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.4329, allocations: 54.53 kB / 413.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 3.045e-06/0.4329, allocations: 2.406 kB / 413.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.006592/0.4395, allocations: 2.766 MB / 416.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.4396, allocations: 89.94 kB / 416.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002122/0.4417, allocations: 1.375 MB / 418 MB, free: 13.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.4419, allocations: 41.7 kB / 418 MB, free: 13.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008128/0.4427, allocations: 1.176 MB / 419.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002997/0.443, allocations: 354.7 kB / 419.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.355e-05/0.4431, allocations: 24 kB / 419.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4432, allocations: 357.9 kB / 419.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009126/0.4442, allocations: 0.5686 MB / 420.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.4452, allocations: 0.8669 MB / 421.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.4463, allocations: 0.706 MB / 422.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.4463, allocations: 4 kB / 422.1 MB, free: 9.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003315/0.4496, allocations: 1.979 MB / 424 MB, free: 7.676 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.4497, allocations: 13.52 kB / 424 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.4497, allocations: 8 kB / 424.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009955/0.4507, allocations: 402.1 kB / 424.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00084/0.4515, allocations: 225.7 kB / 424.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006932/0.4585, allocations: 5.981 MB / 430.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.4598, allocations: 142.8 kB / 430.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001828/0.46, allocations: 47.98 kB / 430.8 MB, free: 0.6523 MB / 334.1 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.001905/0.4619, allocations: 0.8652 MB / 431.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004511/0.4624, allocations: 136.8 kB / 431.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003176/0.4656, allocations: 1.675 MB / 433.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.4656, allocations: 8 kB / 433.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/0.4656, allocations: 8 kB / 433.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.4657, allocations: 3.984 kB / 433.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00763/0.4733, allocations: 3.94 MB / 437.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.4733, allocations: 4 kB / 437.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000587/0.4739, allocations: 135.8 kB / 437.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.475, allocations: 400.9 kB / 438 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.265e-05/0.4751, allocations: 27.98 kB / 438 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00687/0.482, allocations: 5.961 MB / 444 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.482, allocations: 7.984 kB / 444 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004239/0.4862, allocations: 2.507 MB / 446.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006974/0.487, allocations: 247.2 kB / 446.7 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000519/0.4875, allocations: 27.95 kB / 446.8 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.4887, allocations: 99.91 kB / 446.9 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003008/0.489, allocations: 92.67 kB / 447 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.4891, allocations: 31.98 kB / 447 MB, free: 108 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002163/0.4913, allocations: 0.9565 MB / 447.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4913, allocations: 0 / 447.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002879/0.4942, allocations: 0.6766 MB / 448.6 MB, free: 14.46 MB / 366.1 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.004866/0.4991, allocations: 3.103 MB / 451.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00328/0.5024, allocations: 1.797 MB / 453.5 MB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.5024, allocations: 1.188 kB / 453.5 MB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.5044, allocations: 1.141 MB / 454.7 MB, free: 8.312 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002151/0.5066, allocations: 308.5 kB / 455 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02438/0.5309, allocations: 12.82 MB / 467.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002739/0.5337, allocations: 2.18 MB / 470 MB, free: 8.508 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001319/0.5351, allocations: 346.9 kB / 470.3 MB, free: 8.164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/0.5365, allocations: 0.8703 MB / 471.2 MB, free: 7.293 MB / 382.1 MB Notification: Performance of SimCode: time 4.167e-06/0.5365, allocations: 0 / 471.2 MB, free: 7.293 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06454/0.601, allocations: 35.59 MB / 0.4949 GB, free: 4.117 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/0.6013, allocations: 240.8 kB / 0.4951 GB, free: 3.871 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/3.265, allocations: 0 / 0.4951 GB, free: 3.871 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat