Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00151/0.00151, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001868/0.001868, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 61.25 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0852/0.08642, allocations: 50.52 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004009/0.09046, allocations: 2.816 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.09181, allocations: 0.7788 MB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.09199, allocations: 8 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.09221, allocations: 71.42 kB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002679/0.0925, allocations: 99.17 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.09276, allocations: 111.7 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003746/0.09315, allocations: 394.5 kB / 361.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.09337, allocations: 126.9 kB / 362 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002929/0.09367, allocations: 159.4 kB / 362.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.09388, allocations: 171.2 kB / 362.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.317e-05/0.09395, allocations: 36 kB / 362.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.946e-05/0.09401, allocations: 32 kB / 362.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.019e-05/0.09408, allocations: 79.69 kB / 362.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.09424, allocations: 171.1 kB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003416/0.09459, allocations: 394.8 kB / 363 MB, free: 8.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.0946, allocations: 0 / 363 MB, free: 8.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09461, allocations: 4 kB / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.09462, allocations: 0 / 363 MB, free: 8.551 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001103/0.09573, allocations: 0.6354 MB / 363.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.09577, allocations: 12.03 kB / 363.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.616e-05/0.09584, allocations: 66.72 kB / 363.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.753e-05/0.09592, allocations: 40.47 kB / 363.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.09621, allocations: 272.6 kB / 364 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.09624, allocations: 28.97 kB / 364 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-05/0.0963, allocations: 32.38 kB / 364.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005638/0.09687, allocations: 298.1 kB / 364.4 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.09689, allocations: 0 / 364.4 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.09692, allocations: 12 kB / 364.4 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.09693, allocations: 8 kB / 364.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006242/0.09756, allocations: 250.5 kB / 364.6 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.09921, allocations: 1.12 MB / 365.7 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003709/0.09959, allocations: 154.5 kB / 365.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.0998, allocations: 72.72 kB / 366 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.09983, allocations: 4 kB / 366 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.09986, allocations: 30.56 kB / 366 MB, free: 5.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.09986, allocations: 0 / 366 MB, free: 5.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002071/0.1019, allocations: 0.5973 MB / 366.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.102, allocations: 51.41 kB / 366.6 MB, free: 4.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.1023, allocations: 274.5 kB / 366.9 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.1023, allocations: 33.7 kB / 366.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.1024, allocations: 223.5 kB / 367.2 MB, free: 4.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.973e-05/0.1025, allocations: 74.92 kB / 367.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1026, allocations: 61.59 kB / 367.3 MB, free: 3.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1027, allocations: 338.8 kB / 367.6 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.103, allocations: 95.72 kB / 367.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003465/0.1034, allocations: 192.1 kB / 367.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006256/0.104, allocations: 306.8 kB / 368.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.104, allocations: 4 kB / 368.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008554/0.1049, allocations: 389.3 kB / 368.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1049, allocations: 4 kB / 368.6 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1049, allocations: 4 kB / 368.6 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002286/0.1052, allocations: 61.67 kB / 368.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000332/0.1055, allocations: 75.89 kB / 368.7 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1403/0.2458, allocations: 2.83 MB / 371.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003529/0.2461, allocations: 28.11 kB / 371.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.2462, allocations: 17.03 kB / 371.6 MB, free: 18.46 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 (37): * Single equations (assignments): 35 * 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.0001418/0.2463, allocations: 151.5 kB / 371.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.2464, allocations: 27.09 kB / 371.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.672e-05/0.2465, allocations: 33.02 kB / 371.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2465, allocations: 6.422 kB / 371.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2465, allocations: 2.75 kB / 371.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2465, allocations: 1.266 kB / 371.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003371/0.2468, allocations: 334.9 kB / 372.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2469, allocations: 3.391 kB / 372.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.2471, allocations: 36.8 kB / 372.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001692/0.2473, allocations: 59.5 kB / 372.3 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.2473, allocations: 5.047 kB / 372.3 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/0.2485, allocations: 2.83 MB / 375.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2486, allocations: 0.75 kB / 375.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.2493, allocations: 372.2 kB / 375.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.29e-05/0.2493, allocations: 101.6 kB / 375.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.2494, allocations: 9.719 kB / 375.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.2496, allocations: 16.86 kB / 375.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.638e-05/0.2497, allocations: 20.42 kB / 375.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.2497, allocations: 4.406 kB / 375.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.2499, allocations: 192.6 kB / 375.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2499, allocations: 0 / 375.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003973/0.2503, allocations: 73.12 kB / 375.9 MB, free: 15.15 MB / 302.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 (18): * Single equations (assignments): 16 * 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.0008461/0.2511, allocations: 0.9043 MB / 376.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000887/0.252, allocations: 495.8 kB / 377.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.252, allocations: 0 / 377.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004562/0.2525, allocations: 346.9 kB / 377.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/0.2529, allocations: 23.98 kB / 377.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003716/0.2566, allocations: 2.968 MB / 380.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.2568, allocations: 0.7755 MB / 381.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001442/0.257, allocations: 29.38 kB / 381.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2571, allocations: 103.9 kB / 381.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2571, allocations: 0 / 381.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02463/0.2817, allocations: 5.471 MB / 387 MB, free: 10.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.122/9.404, allocations: 13.23 kB / 387 MB, free: 10.73 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_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_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches