Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 95.94 kB / 17 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001271/0.001271, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.0002299, allocations: 4 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1034, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006385/0.1098, allocations: 4.324 MB / 362.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004255/0.1141, allocations: 1.943 MB / 364.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003712/0.1145, allocations: 16 kB / 364.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007693/0.1153, allocations: 230.8 kB / 364.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001167/0.1165, allocations: 350.2 kB / 365.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002584/0.1191, allocations: 0.9747 MB / 366.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.1203, allocations: 0.6807 MB / 366.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002734/0.123, allocations: 1.141 MB / 368 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005475/0.1236, allocations: 278.9 kB / 368.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005548/0.1242, allocations: 366.6 kB / 368.6 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.241e-05/0.1243, allocations: 32 kB / 368.6 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.1253, allocations: 367.6 kB / 369 MB, free: 3.043 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.1255, allocations: 119.5 kB / 369.1 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.1257, allocations: 153.3 kB / 369.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001348/0.127, allocations: 0.9078 MB / 370.2 MB, free: 1.859 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1271, allocations: 0 / 370.2 MB, free: 1.859 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1271, allocations: 0 / 370.2 MB, free: 1.859 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1271, allocations: 0 / 370.2 MB, free: 1.859 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.005816/0.1329, allocations: 1.354 MB / 371.5 MB, free: 464 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.133, allocations: 8.031 kB / 371.5 MB, free: 456 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002222/0.1332, allocations: 131.2 kB / 371.7 MB, free: 316 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2527/0.3859, allocations: 382.4 kB / 372 MB, free: 18.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.3862, allocations: 255.3 kB / 372.3 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.3864, allocations: 63.28 kB / 372.3 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003073/0.3867, allocations: 87.88 kB / 372.4 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001914/0.3886, allocations: 0.8838 MB / 373.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.3886, allocations: 2.781 kB / 373.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.346e-05/0.3887, allocations: 37.44 kB / 373.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.583e-05/0.3888, allocations: 20.89 kB / 373.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002224/0.391, allocations: 0.8243 MB / 374.2 MB, free: 18.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004746/0.3958, allocations: 3.057 MB / 377.2 MB, free: 16.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3968, allocations: 1.002 MB / 378.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004887/0.3973, allocations: 265.1 kB / 378.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.3974, allocations: 173.9 kB / 378.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.3975, allocations: 46.67 kB / 378.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.964e-06/0.3975, allocations: 0 / 378.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007429/0.4049, allocations: 2.679 MB / 381.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.405, allocations: 90.78 kB / 381.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.4053, allocations: 325.6 kB / 381.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.4053, allocations: 36.33 kB / 381.8 MB, free: 14.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.4055, allocations: 361.4 kB / 382.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.4056, allocations: 210.5 kB / 382.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.4057, allocations: 15.69 kB / 382.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.607e-05/0.4058, allocations: 352 kB / 382.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007718/0.4065, allocations: 295.7 kB / 383 MB, free: 13.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008532/0.4074, allocations: 0.5257 MB / 383.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008176/0.4082, allocations: 361.7 kB / 383.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.4082, allocations: 2 kB / 383.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001996/0.4102, allocations: 0.9493 MB / 384.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.4103, allocations: 8.156 kB / 384.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.4103, allocations: 12.75 kB / 384.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002232/0.4105, allocations: 66.11 kB / 385 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008359/0.4114, allocations: 217.9 kB / 385.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.4128, allocations: 2.663 MB / 387.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005902/0.4134, allocations: 73.2 kB / 387.9 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.296e-05/0.4134, allocations: 45.02 kB / 388 MB, free: 9.484 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002383/0.4137, allocations: 217.8 kB / 388.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.178e-05/0.4138, allocations: 39.59 kB / 388.2 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/0.4157, allocations: 0.7893 MB / 389 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.4157, allocations: 10.58 kB / 389 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.4157, allocations: 1.406 kB / 389 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.4157, allocations: 3.656 kB / 389 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/0.4183, allocations: 1.468 MB / 390.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.4183, allocations: 1.344 kB / 390.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006591/0.419, allocations: 151 kB / 390.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.4191, allocations: 56.78 kB / 390.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.4192, allocations: 16.36 kB / 390.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.4204, allocations: 2.658 MB / 393.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.4204, allocations: 0 / 393.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.4229, allocations: 1.152 MB / 394.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.423, allocations: 168.1 kB / 394.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.04e-05/0.4231, allocations: 15.19 kB / 394.7 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.4236, allocations: 59.38 kB / 394.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.894e-05/0.4237, allocations: 42.42 kB / 394.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.875e-05/0.4237, allocations: 23.56 kB / 394.8 MB, free: 4.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001898/0.4239, allocations: 217.9 kB / 395 MB, free: 4.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4239, allocations: 0 / 395 MB, free: 4.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006711/0.4246, allocations: 187.1 kB / 395.2 MB, free: 4.695 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * 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 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002647/0.4272, allocations: 1.76 MB / 397 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.4291, allocations: 0.9643 MB / 397.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4291, allocations: 0 / 397.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009225/0.4301, allocations: 0.5773 MB / 398.5 MB, free: 2.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000399/0.4305, allocations: 49.8 kB / 398.6 MB, free: 2.711 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005435/0.4359, allocations: 3.492 MB / 402 MB, free: 388 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.4363, allocations: 0.8796 MB / 402.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004616/0.4368, allocations: 103.9 kB / 403 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003111/0.4371, allocations: 227 kB / 403.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of SimCode: time 3.8e-07/0.4371, allocations: 0 / 403.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02453/0.4616, allocations: 10.44 MB / 413.7 MB, free: 5.84 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002784/0.4619, allocations: 258.5 kB / 413.9 MB, free: 5.488 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.584, allocations: 0 / 413.9 MB, free: 5.488 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat