Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2375/0.2375, allocations: 46.12 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 83.84 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3164, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003981/0.3204, allocations: 2.49 MB / 0.5331 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.3221, allocations: 0.8353 MB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.3223, allocations: 7.75 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002196/0.3226, allocations: 51.55 kB / 0.5339 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000299/0.3229, allocations: 108.7 kB / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.3232, allocations: 106.3 kB / 0.5341 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.3235, allocations: 354.4 kB / 0.5345 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.3237, allocations: 89.17 kB / 0.5346 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002646/0.324, allocations: 138.3 kB / 0.5347 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.3242, allocations: 161.9 kB / 0.5348 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.915e-05/0.3243, allocations: 34.23 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.939e-05/0.3244, allocations: 35.62 kB / 0.5349 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.681e-05/0.3245, allocations: 70.58 kB / 0.535 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.3246, allocations: 153.8 kB / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000429/0.3251, allocations: 379.4 kB / 0.5355 GB, free: 9.598 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3251, allocations: 1.375 kB / 0.5355 GB, free: 9.598 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3251, allocations: 0 / 0.5355 GB, free: 9.598 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.3251, allocations: 0 / 0.5355 GB, free: 9.598 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001157/0.3263, allocations: 0.6315 MB / 0.5361 GB, free: 9.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3263, allocations: 9.469 kB / 0.5361 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.505e-05/0.3264, allocations: 67.22 kB / 0.5362 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.3266, allocations: 44.3 kB / 0.5362 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.327, allocations: 270.2 kB / 0.5365 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.327, allocations: 22.91 kB / 0.5365 GB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.327, allocations: 24.19 kB / 0.5365 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005337/0.3276, allocations: 246.7 kB / 0.5368 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3276, allocations: 0 / 0.5368 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.3276, allocations: 10.25 kB / 0.5368 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3276, allocations: 13.66 kB / 0.5368 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000525/0.3282, allocations: 228.6 kB / 0.537 GB, free: 8.383 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3297, allocations: 0.8811 MB / 0.5379 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005586/0.3303, allocations: 306 kB / 0.5381 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.3306, allocations: 143 kB / 0.5383 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.89e-05/0.3307, allocations: 6.391 kB / 0.5383 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.3307, allocations: 36.88 kB / 0.5383 GB, free: 7.375 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.803e-06/0.3307, allocations: 4 kB / 0.5383 GB, free: 7.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004826/0.3355, allocations: 1.262 MB / 0.5396 GB, free: 6.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.3356, allocations: 62.61 kB / 0.5396 GB, free: 6.414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.3359, allocations: 234.9 kB / 0.5398 GB, free: 6.242 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.336, allocations: 35.39 kB / 0.5399 GB, free: 6.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.3361, allocations: 166.1 kB / 0.54 GB, free: 6.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.3362, allocations: 108.1 kB / 0.5401 GB, free: 5.957 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.3363, allocations: 47.77 kB / 0.5402 GB, free: 5.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.3365, allocations: 336.6 kB / 0.5405 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.3368, allocations: 93.3 kB / 0.5406 GB, free: 5.547 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.337, allocations: 132 kB / 0.5407 GB, free: 5.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005128/0.3376, allocations: 232.4 kB / 0.5409 GB, free: 5.344 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3376, allocations: 0 / 0.5409 GB, free: 5.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0019/0.3395, allocations: 0.5446 MB / 0.5415 GB, free: 5.031 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3395, allocations: 5.25 kB / 0.5415 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3395, allocations: 1.344 kB / 0.5415 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001766/0.3413, allocations: 319.2 kB / 0.5418 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.3415, allocations: 38.28 kB / 0.5418 GB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008678/0.3502, allocations: 6.842 MB / 0.5485 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.3505, allocations: 23.84 kB / 0.5485 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.3505, allocations: 6.547 kB / 0.5485 GB, free: 14.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001865/0.3507, allocations: 153.6 kB / 0.5487 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.068e-05/0.3508, allocations: 28.16 kB / 0.5487 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.3527, allocations: 0.5584 MB / 0.5492 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3527, allocations: 0 / 0.5492 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3527, allocations: 7.938 kB / 0.5493 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.3527, allocations: 3.984 kB / 0.5493 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004881/0.3532, allocations: 365.2 kB / 0.5496 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3532, allocations: 0 / 0.5496 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.3534, allocations: 15.98 kB / 0.5496 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001581/0.355, allocations: 323.3 kB / 0.5499 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.355, allocations: 4 kB / 0.5499 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008363/0.3634, allocations: 6.901 MB / 0.5567 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3634, allocations: 4.031 kB / 0.5567 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.3653, allocations: 0.6312 MB / 0.5573 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.456e-05/0.3654, allocations: 104.8 kB / 0.5574 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.3655, allocations: 8 kB / 0.5574 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.3657, allocations: 11.98 kB / 0.5574 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.3658, allocations: 31.89 kB / 0.5574 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.3659, allocations: 12 kB / 0.5575 GB, free: 4.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001761/0.366, allocations: 170 kB / 0.5576 GB, free: 4.426 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3661, allocations: 0 / 0.5576 GB, free: 4.426 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005437/0.3666, allocations: 123.9 kB / 0.5577 GB, free: 4.305 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002204/0.3688, allocations: 1.16 MB / 0.5589 GB, free: 3.109 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.3701, allocations: 0.7725 MB / 0.5596 GB, free: 2.285 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3701, allocations: 0 / 0.5596 GB, free: 2.285 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001375/0.3715, allocations: 0.7329 MB / 0.5603 GB, free: 1.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.3718, allocations: 22.75 kB / 0.5604 GB, free: 1.477 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006526/0.3784, allocations: 3.18 MB / 0.5635 GB, free: 14.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.3788, allocations: 0.7717 MB / 0.5642 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.475e-05/0.3789, allocations: 13.95 kB / 0.5642 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.3791, allocations: 83.34 kB / 0.5643 GB, free: 13.28 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3791, allocations: 0 / 0.5643 GB, free: 13.28 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04797/0.427, allocations: 10.99 MB / 0.575 GB, free: 2.453 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.8, allocations: 7.719 kB / 0.5751 GB, free: 2.445 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches