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.001127/0.001127, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2657, allocations: 50.54 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004131/0.2698, allocations: 2.83 MB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.2712, allocations: 0.7789 MB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.2713, allocations: 4 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002138/0.2715, allocations: 67.42 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002585/0.2718, allocations: 95.19 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.2721, allocations: 111.8 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000349/0.2724, allocations: 390.5 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.2727, allocations: 130.9 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000287/0.273, allocations: 167.3 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.2732, allocations: 163.2 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.65e-05/0.2732, allocations: 32 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.66e-05/0.2733, allocations: 32 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.473e-05/0.2733, allocations: 83.67 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.2735, allocations: 171.1 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004435/0.2739, allocations: 393.3 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2739, allocations: 0 / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.274, allocations: 0 / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.274, allocations: 0 / 414.2 MB, free: 12.07 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001179/0.2751, allocations: 0.6545 MB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2752, allocations: 8.031 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.887e-05/0.2753, allocations: 74.66 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.608e-05/0.2754, allocations: 44.64 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.2757, allocations: 280.7 kB / 415.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.2757, allocations: 21.03 kB / 415.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.078e-05/0.2758, allocations: 36.36 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005772/0.2764, allocations: 286.2 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.2764, allocations: 0 / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.2764, allocations: 16 kB / 415.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.2765, allocations: 11.94 kB / 415.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005906/0.2771, allocations: 254.5 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.2787, allocations: 1.112 MB / 416.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003681/0.2791, allocations: 158.4 kB / 417.1 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001796/0.2793, allocations: 67.94 kB / 417.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.2793, allocations: 7.984 kB / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.2793, allocations: 38.56 kB / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.2793, allocations: 0 / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001994/0.2813, allocations: 0.5911 MB / 417.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.2814, allocations: 55.41 kB / 417.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.2817, allocations: 274.5 kB / 418.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.2817, allocations: 25.7 kB / 418.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.2818, allocations: 236 kB / 418.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.403e-05/0.2819, allocations: 75.38 kB / 418.4 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.015e-05/0.282, allocations: 69.42 kB / 418.5 MB, free: 7.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.2821, allocations: 342.8 kB / 418.8 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.2824, allocations: 91.94 kB / 418.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003461/0.2828, allocations: 196.1 kB / 419.1 MB, free: 6.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006212/0.2834, allocations: 301.1 kB / 419.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2834, allocations: 0 / 419.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008309/0.2843, allocations: 397 kB / 419.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2843, allocations: 4 kB / 419.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2843, allocations: 4 kB / 419.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002506/0.2846, allocations: 62.08 kB / 419.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003194/0.2849, allocations: 79.83 kB / 420 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/0.287, allocations: 2.825 MB / 422.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.2873, allocations: 27.91 kB / 422.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.2873, allocations: 16 kB / 422.8 MB, free: 2.734 MB / 334.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.0001578/0.2875, allocations: 157.7 kB / 423 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.003e-05/0.2875, allocations: 27.98 kB / 423 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.579e-05/0.2876, allocations: 34.16 kB / 423 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.2876, allocations: 8 kB / 423 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.2876, allocations: 0 / 423 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2876, allocations: 0 / 423 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003573/0.288, allocations: 333.4 kB / 423.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.288, allocations: 3.938 kB / 423.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.2882, allocations: 39.97 kB / 423.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001418/0.2884, allocations: 57.61 kB / 423.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.2884, allocations: 8 kB / 423.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.2903, allocations: 2.826 MB / 426.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2904, allocations: 0 / 426.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007164/0.2911, allocations: 384.8 kB / 426.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.795e-05/0.2912, allocations: 96.97 kB / 426.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.2912, allocations: 4 kB / 426.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.2914, allocations: 15.97 kB / 426.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.882e-05/0.2915, allocations: 23.92 kB / 426.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.2915, allocations: 12 kB / 426.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001792/0.2917, allocations: 190 kB / 427 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2917, allocations: 0 / 427 MB, free: 14.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003643/0.2921, allocations: 72 kB / 427.1 MB, free: 14.09 MB / 350.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.0009804/0.2931, allocations: 0.9082 MB / 428 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009006/0.294, allocations: 477.1 kB / 428.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.294, allocations: 0.8125 kB / 428.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.2945, allocations: 357.2 kB / 428.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.2948, allocations: 34.78 kB / 428.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004094/0.2989, allocations: 2.951 MB / 431.8 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.2993, allocations: 0.7752 MB / 432.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.2994, allocations: 30.36 kB / 432.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.2996, allocations: 99.41 kB / 432.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2996, allocations: 3.938 kB / 432.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02644/0.326, allocations: 5.616 MB / 438.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.65/9.976, allocations: 7.328 kB / 438.3 MB, free: 2.75 MB / 350.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