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.001185/0.001185, allocations: 118.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3023, allocations: 50.55 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006839/0.3092, allocations: 5.074 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004042/0.3133, allocations: 2.152 MB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006261/0.314, allocations: 16 kB / 416 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003216/0.3172, allocations: 1.412 MB / 417.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001263/0.3185, allocations: 425.4 kB / 417.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002269/0.3207, allocations: 1.198 MB / 419 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.3219, allocations: 0.7472 MB / 419.8 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.3232, allocations: 0.6612 MB / 420.4 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006268/0.3238, allocations: 326.8 kB / 420.8 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006974/0.3245, allocations: 438.3 kB / 421.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001815/0.3247, allocations: 68 kB / 421.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009382/0.3256, allocations: 419.6 kB / 421.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001798/0.3258, allocations: 167.4 kB / 421.8 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000433/0.3263, allocations: 378.1 kB / 422.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001645/0.3279, allocations: 1.229 MB / 423.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3279, allocations: 0 / 423.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.328, allocations: 0 / 423.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.939e-05/0.328, allocations: 3.938 kB / 423.4 MB, free: 2.793 MB / 334.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.004679/0.3327, allocations: 1.487 MB / 424.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3327, allocations: 12.03 kB / 424.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.3329, allocations: 131.4 kB / 425.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002589/0.3355, allocations: 384.1 kB / 425.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.3358, allocations: 263.4 kB / 425.7 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.363e-05/0.3359, allocations: 70.31 kB / 425.8 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001814/0.3361, allocations: 84.12 kB / 425.8 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/0.3379, allocations: 0.872 MB / 426.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.131e-05/0.3379, allocations: 7.938 kB / 426.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.681e-05/0.338, allocations: 36 kB / 426.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.338, allocations: 20 kB / 426.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/0.34, allocations: 0.8003 MB / 427.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004637/0.3446, allocations: 3.014 MB / 430.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.3459, allocations: 1.004 MB / 431.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005005/0.3464, allocations: 238.4 kB / 431.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001642/0.3466, allocations: 178.8 kB / 432 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.3466, allocations: 43.12 kB / 432 MB, free: 9.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.154e-06/0.3466, allocations: 0 / 432 MB, free: 9.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007003/0.3537, allocations: 2.405 MB / 434.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/0.3537, allocations: 85.67 kB / 434.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.3541, allocations: 320.3 kB / 434.8 MB, free: 6.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.3542, allocations: 33.7 kB / 434.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.3544, allocations: 379.9 kB / 435.3 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.3546, allocations: 222.1 kB / 435.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.3548, allocations: 138.6 kB / 435.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.355, allocations: 358.7 kB / 436 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007167/0.3557, allocations: 269.8 kB / 436.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008646/0.3566, allocations: 0.5081 MB / 436.7 MB, free: 4.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.3582, allocations: 0.8037 MB / 437.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.3582, allocations: 8 kB / 437.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002006/0.3602, allocations: 0.8947 MB / 438.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.3603, allocations: 11.94 kB / 438.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.3603, allocations: 12 kB / 438.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002853/0.3606, allocations: 73.98 kB / 438.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008235/0.3614, allocations: 199.7 kB / 438.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.3636, allocations: 2.868 MB / 441.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006472/0.3642, allocations: 67.97 kB / 441.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.479e-05/0.3643, allocations: 39.92 kB / 441.7 MB, free: 15.39 MB / 366.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003088/0.3646, allocations: 213.6 kB / 441.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.662e-05/0.3647, allocations: 43.7 kB / 441.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/0.3666, allocations: 0.7351 MB / 442.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.3666, allocations: 4 kB / 442.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3666, allocations: 0 / 442.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.3667, allocations: 11.94 kB / 442.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/0.3694, allocations: 1.421 MB / 444.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3694, allocations: 0 / 444.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000638/0.3701, allocations: 131.8 kB / 444.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.3703, allocations: 65.61 kB / 444.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.962e-05/0.3704, allocations: 15.98 kB / 444.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/0.3724, allocations: 2.849 MB / 447.2 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3724, allocations: 3.938 kB / 447.2 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.3748, allocations: 1.079 MB / 448.3 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.3751, allocations: 164.8 kB / 448.4 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.454e-05/0.3752, allocations: 16.06 kB / 448.4 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005157/0.3757, allocations: 51.94 kB / 448.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.3759, allocations: 44.5 kB / 448.5 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.848e-05/0.3759, allocations: 16 kB / 448.5 MB, free: 8.121 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002748/0.3762, allocations: 215.1 kB / 448.8 MB, free: 7.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3762, allocations: 0 / 448.8 MB, free: 7.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000896/0.3771, allocations: 184 kB / 448.9 MB, free: 7.73 MB / 366.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003001/0.3801, allocations: 1.686 MB / 450.6 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001973/0.3821, allocations: 0.9085 MB / 451.5 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3822, allocations: 0 / 451.5 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.3832, allocations: 0.5473 MB / 452.1 MB, free: 4.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/0.3838, allocations: 53.02 kB / 452.1 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/0.3939, allocations: 5.207 MB / 457.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006245/0.3945, allocations: 0.8888 MB / 458.2 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004065/0.395, allocations: 88.5 kB / 458.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004038/0.3954, allocations: 223.3 kB / 458.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3954, allocations: 0 / 458.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04141/0.4368, allocations: 11.34 MB / 469.9 MB, free: 2.633 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.14, allocations: 16.39 kB / 469.9 MB, free: 2.617 MB / 382.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches