Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001071/0.001071, allocations: 95.91 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001256, allocations: 206.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003677/0.0003678, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1232, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006438/0.1297, allocations: 5.275 MB / 363.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004605/0.1344, allocations: 2.35 MB / 365.8 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006319/0.135, allocations: 20 kB / 365.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000828/0.1359, allocations: 278.4 kB / 366.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.1371, allocations: 494.1 kB / 366.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001978/0.1391, allocations: 1.009 MB / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001165/0.1403, allocations: 0.7181 MB / 368.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001822/0.1421, allocations: 1.167 MB / 369.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004444/0.1426, allocations: 366.5 kB / 369.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004991/0.1431, allocations: 450.1 kB / 370.3 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.796e-05/0.1432, allocations: 48 kB / 370.3 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007509/0.144, allocations: 319.6 kB / 370.6 MB, free: 1.238 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.1441, allocations: 171.3 kB / 370.8 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.1443, allocations: 201.2 kB / 371 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1967/0.341, allocations: 1.111 MB / 372.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3411, allocations: 0 / 372.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3411, allocations: 0 / 372.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.745e-05/0.3411, allocations: 0 / 372.1 MB, free: 10.39 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004579/0.3457, allocations: 1.467 MB / 373.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.3458, allocations: 9.312 kB / 373.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003524/0.3461, allocations: 169 kB / 373.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003643/0.3498, allocations: 0.491 MB / 374.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.3512, allocations: 481.8 kB / 374.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.3513, allocations: 91.91 kB / 374.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.3515, allocations: 117.7 kB / 374.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002404/0.3539, allocations: 0.9606 MB / 375.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/0.354, allocations: 2.5 kB / 375.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.3541, allocations: 48.69 kB / 375.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.941e-05/0.3541, allocations: 27.19 kB / 376 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.356, allocations: 0.9663 MB / 376.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006795/0.3628, allocations: 3.805 MB / 380.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.3647, allocations: 1.543 MB / 382.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/0.3649, allocations: 189.7 kB / 382.5 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008396/0.3657, allocations: 471.1 kB / 382.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 3.276e-06/0.3657, allocations: 0 / 382.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=122): time 0.008733/0.3745, allocations: 3.927 MB / 386.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.3745, allocations: 146.7 kB / 387 MB, free: 5.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005384/0.3751, allocations: 400.3 kB / 387.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.228e-05/0.3752, allocations: 48.47 kB / 387.4 MB, free: 5.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.3754, allocations: 424.8 kB / 387.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002679/0.3757, allocations: 411.1 kB / 388.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.096e-05/0.3758, allocations: 25.16 kB / 388.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3759, allocations: 379.4 kB / 388.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006918/0.3766, allocations: 352.3 kB / 389 MB, free: 4.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007827/0.3774, allocations: 0.5358 MB / 389.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000755/0.3782, allocations: 424.2 kB / 389.9 MB, free: 4.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.3782, allocations: 5.969 kB / 389.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002332/0.3805, allocations: 1.359 MB / 391.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.3805, allocations: 6.625 kB / 391.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3806, allocations: 8.438 kB / 391.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008606/0.3814, allocations: 346.6 kB / 391.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000833/0.3823, allocations: 200.2 kB / 391.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006897/0.3892, allocations: 7.794 MB / 399.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009392/0.3902, allocations: 47.52 kB / 399.7 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.84e-05/0.3903, allocations: 48.41 kB / 399.7 MB, free: 12.72 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005208/0.3908, allocations: 254.3 kB / 400 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.3909, allocations: 70.69 kB / 400.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/0.3934, allocations: 1.284 MB / 401.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.3934, allocations: 17.34 kB / 401.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.3934, allocations: 3.844 kB / 401.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.3934, allocations: 15.81 kB / 401.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003918/0.3974, allocations: 2.414 MB / 403.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.3974, allocations: 0 / 403.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006545/0.3981, allocations: 148.9 kB / 403.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007708/0.3988, allocations: 327 kB / 404.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.545e-05/0.3989, allocations: 23.66 kB / 404.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007017/0.4059, allocations: 7.549 MB / 411.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.406, allocations: 0 / 411.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003333/0.4093, allocations: 1.776 MB / 413.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004262/0.4098, allocations: 216.3 kB / 413.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.4099, allocations: 31.98 kB / 413.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.4104, allocations: 35.98 kB / 413.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.4106, allocations: 100.2 kB / 414 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.024e-05/0.4107, allocations: 31.98 kB / 414 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003103/0.411, allocations: 275.2 kB / 414.3 MB, free: 324 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.411, allocations: 0 / 414.3 MB, free: 324 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001338/0.4124, allocations: 312 kB / 414.6 MB, free: 12 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 19,(1,100.0%) 2,(1,100.0%) 4,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003728/0.4161, allocations: 2.463 MB / 417.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002946/0.4191, allocations: 1.603 MB / 418.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.4191, allocations: 0 / 418.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.4209, allocations: 1.146 MB / 419.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.4214, allocations: 54.64 kB / 419.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006153/0.4276, allocations: 5.599 MB / 425.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007335/0.4283, allocations: 1.036 MB / 426.5 MB, free: 3.902 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005212/0.4289, allocations: 98.05 kB / 426.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000421/0.4293, allocations: 347.3 kB / 426.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4293, allocations: 4 kB / 426.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03329/0.4626, allocations: 16.66 MB / 443.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.4629, allocations: 225.8 kB / 443.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/2.855, allocations: 0 / 443.8 MB, free: 2.805 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat