Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 110.3 kB / 16.92 MB, free: 5.785 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.978/1.978, allocations: 222.9 MB / 241.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 45.77 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1175, allocations: 49.45 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.007497/0.1251, allocations: 3.478 MB / 353.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.1277, allocations: 0.9346 MB / 354.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004888/0.1282, allocations: 8 kB / 354.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004721/0.1287, allocations: 99.08 kB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008159/0.1295, allocations: 150.8 kB / 354.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.1302, allocations: 171.7 kB / 355 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001077/0.1313, allocations: 0.6271 MB / 355.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004619/0.1318, allocations: 197.4 kB / 355.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000532/0.1323, allocations: 239 kB / 356.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005174/0.1328, allocations: 278.6 kB / 356.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.133, allocations: 52 kB / 356.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.1332, allocations: 52 kB / 356.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.1333, allocations: 123.5 kB / 356.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003915/0.1337, allocations: 282.5 kB / 356.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007896/0.1345, allocations: 0.6152 MB / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1345, allocations: 0 / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1346, allocations: 0 / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.772e-05/0.1346, allocations: 0 / 357.4 MB, free: 13.04 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002265/0.1369, allocations: 0.8537 MB / 358.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.1369, allocations: 16.03 kB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000151/0.1371, allocations: 90.7 kB / 358.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.1373, allocations: 60.19 kB / 358.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006237/0.1379, allocations: 351 kB / 358.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.481e-05/0.138, allocations: 37.69 kB / 358.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.1381, allocations: 52.12 kB / 358.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.1393, allocations: 438.5 kB / 359.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1393, allocations: 0 / 359.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.07e-05/0.1394, allocations: 24 kB / 359.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.1394, allocations: 12 kB / 359.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.1407, allocations: 393 kB / 359.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003529/0.1442, allocations: 1.581 MB / 361.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.1453, allocations: 413.1 kB / 361.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005922/0.1459, allocations: 177.4 kB / 361.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.968e-05/0.146, allocations: 8.328 kB / 361.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.146, allocations: 42.88 kB / 361.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 3.016e-06/0.146, allocations: 0 / 361.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.004685/0.1507, allocations: 1.187 MB / 363.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.1508, allocations: 59.97 kB / 363.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006529/0.1515, allocations: 397.5 kB / 363.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.447e-05/0.1515, allocations: 37.7 kB / 363.6 MB, free: 6.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/0.1518, allocations: 299.8 kB / 363.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.152, allocations: 185.3 kB / 364.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002437/0.1523, allocations: 110.2 kB / 364.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.1525, allocations: 362.8 kB / 364.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006567/0.1532, allocations: 177.2 kB / 364.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007782/0.1539, allocations: 303 kB / 365 MB, free: 5.098 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.1554, allocations: 494.5 kB / 365.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.1554, allocations: 4.031 kB / 365.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002183/0.1576, allocations: 0.7381 MB / 366.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.1576, allocations: 8 kB / 366.2 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.1576, allocations: 4 kB / 366.3 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007905/0.1584, allocations: 185.7 kB / 366.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007169/0.1592, allocations: 115.9 kB / 366.5 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2183/0.3775, allocations: 4.27 MB / 370.8 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007668/0.3783, allocations: 29.78 kB / 370.8 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.56e-05/0.3784, allocations: 25.91 kB / 370.9 MB, free: 23.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003167/0.3787, allocations: 176.6 kB / 371 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.3788, allocations: 48.05 kB / 371.1 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001463/0.379, allocations: 60.22 kB / 371.1 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.379, allocations: 6.141 kB / 371.2 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.092e-05/0.3791, allocations: 5.156 kB / 371.2 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.3791, allocations: 3.094 kB / 371.2 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003317/0.3824, allocations: 1.308 MB / 372.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3824, allocations: 1.906 kB / 372.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/0.3829, allocations: 68.84 kB / 372.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006188/0.3836, allocations: 166.4 kB / 372.7 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.3836, allocations: 11.34 kB / 372.7 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004536/0.3881, allocations: 4.104 MB / 376.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3882, allocations: 1.562 kB / 376.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.39, allocations: 0.7054 MB / 377.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.3902, allocations: 117.1 kB / 377.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.301e-05/0.3903, allocations: 12.88 kB / 377.7 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/0.3908, allocations: 26.53 kB / 377.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.3909, allocations: 49.31 kB / 377.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.391, allocations: 14.75 kB / 377.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004371/0.3914, allocations: 276.9 kB / 378 MB, free: 19 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3915, allocations: 0 / 378 MB, free: 19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001208/0.3927, allocations: 154.1 kB / 378.2 MB, free: 18.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 33 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002063/0.3948, allocations: 1.256 MB / 379.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002336/0.3971, allocations: 0.7935 MB / 380.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3971, allocations: 1.125 kB / 380.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.3983, allocations: 0.5285 MB / 380.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007914/0.3991, allocations: 42.89 kB / 380.8 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.4096, allocations: 4.738 MB / 385.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.4101, allocations: 0.8585 MB / 386.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003388/0.4105, allocations: 45.45 kB / 386.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002781/0.4108, allocations: 172.4 kB / 386.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4108, allocations: 0.9062 kB / 386.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2215/0.6323, allocations: 9.446 MB / 396 MB, free: 10.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/16.94, allocations: 7.781 kB / 396 MB, free: 10.24 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches