Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 211 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.457/1.457, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 43.92 kB / 377.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2483, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004475/0.2528, allocations: 2.682 MB / 433.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.2543, allocations: 0.7555 MB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2545, allocations: 4 kB / 434.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002292/0.2547, allocations: 67.38 kB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002976/0.255, allocations: 103.2 kB / 434.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.2553, allocations: 107.9 kB / 434.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004332/0.2557, allocations: 406.4 kB / 435.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.2559, allocations: 87.34 kB / 435.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003133/0.2563, allocations: 163.4 kB / 435.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.2565, allocations: 155.2 kB / 435.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.532e-05/0.2565, allocations: 36 kB / 435.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.099e-05/0.2566, allocations: 32 kB / 435.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.896e-05/0.2567, allocations: 71.77 kB / 435.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.2568, allocations: 151.2 kB / 435.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004748/0.2573, allocations: 414.6 kB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2573, allocations: 4 kB / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2573, allocations: 0 / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2573, allocations: 0 / 436.3 MB, free: 1.441 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.001181/0.2585, allocations: 0.583 MB / 436.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.2585, allocations: 16.03 kB / 436.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.886e-05/0.2586, allocations: 66.72 kB / 436.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.956e-05/0.2587, allocations: 40.7 kB / 437 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/0.2591, allocations: 225.7 kB / 437.2 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/0.2591, allocations: 25.03 kB / 437.2 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.588e-05/0.2592, allocations: 28.38 kB / 437.3 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005938/0.2598, allocations: 290.2 kB / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.2598, allocations: 0 / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.2598, allocations: 16 kB / 437.6 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2598, allocations: 8 kB / 437.6 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006521/0.2605, allocations: 258.5 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2622, allocations: 0.9204 MB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004261/0.2626, allocations: 158.1 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.2628, allocations: 60.83 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.2629, allocations: 0 / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.2629, allocations: 38.5 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.2629, allocations: 0 / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002126/0.265, allocations: 0.593 MB / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.2651, allocations: 63.33 kB / 439.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.2654, allocations: 299.9 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.2654, allocations: 29.7 kB / 440 MB, free: 13.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.2656, allocations: 236 kB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.473e-05/0.2657, allocations: 79.39 kB / 440.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.2658, allocations: 69.64 kB / 440.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.266, allocations: 330.8 kB / 440.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/0.2663, allocations: 95.94 kB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004016/0.2667, allocations: 196 kB / 441 MB, free: 12.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006703/0.2673, allocations: 301.1 kB / 441.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.2673, allocations: 4 kB / 441.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008959/0.2682, allocations: 401.1 kB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.2683, allocations: 8 kB / 441.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2683, allocations: 4 kB / 441.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002432/0.2685, allocations: 61.95 kB / 441.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003463/0.2689, allocations: 75.89 kB / 441.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002463/0.2713, allocations: 2.63 MB / 444.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002814/0.2716, allocations: 19.98 kB / 444.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.2716, allocations: 15.98 kB / 444.5 MB, free: 8.711 MB / 350.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.0001832/0.2718, allocations: 157.7 kB / 444.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.727e-05/0.2719, allocations: 27.81 kB / 444.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.602e-05/0.272, allocations: 34.3 kB / 444.7 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.272, allocations: 4 kB / 444.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.272, allocations: 4.062 kB / 444.7 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.272, allocations: 0 / 444.7 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003971/0.2724, allocations: 280.5 kB / 444.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2724, allocations: 0 / 444.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.2726, allocations: 39.91 kB / 445 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001753/0.2728, allocations: 57.67 kB / 445 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.2728, allocations: 4.141 kB / 445 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/0.2751, allocations: 2.626 MB / 447.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2751, allocations: 0 / 447.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007591/0.2759, allocations: 376.9 kB / 448 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.208e-05/0.2759, allocations: 27.8 kB / 448.1 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.276, allocations: 4 kB / 448.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.2762, allocations: 15.98 kB / 448.1 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.726e-05/0.2763, allocations: 23.89 kB / 448.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.2763, allocations: 8 kB / 448.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.2765, allocations: 203.1 kB / 448.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2765, allocations: 0 / 448.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003876/0.2769, allocations: 76 kB / 448.4 MB, free: 4.461 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.001105/0.278, allocations: 0.9156 MB / 449.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.279, allocations: 465.8 kB / 449.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.279, allocations: 4.062 kB / 449.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005376/0.2796, allocations: 341.2 kB / 450.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.2799, allocations: 28.48 kB / 450.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004746/0.2847, allocations: 3.034 MB / 453.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001851/0.2848, allocations: 176.7 kB / 453.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000121/0.285, allocations: 26.28 kB / 453.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.2851, allocations: 107.4 kB / 453.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2851, allocations: 0 / 453.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04232/0.3275, allocations: 6.403 MB / 459.9 MB, free: 8.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.08, allocations: 15.75 kB / 459.9 MB, free: 8.887 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.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_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable magFluxSensor.Phi in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.533149217721075]