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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 184.1 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 225.7 MB / 252.5 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 43.92 kB / 370.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.233, allocations: 52.18 MB / 422.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004997/0.238, allocations: 3.218 MB / 425.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.2397, allocations: 0.8725 MB / 426.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/0.2399, allocations: 4 kB / 426.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.2402, allocations: 107.1 kB / 426.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003891/0.2406, allocations: 158.7 kB / 426.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.241, allocations: 167.8 kB / 427.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006855/0.2417, allocations: 0.6348 MB / 427.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000261/0.2419, allocations: 127.7 kB / 427.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003514/0.2423, allocations: 251 kB / 428.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.2426, allocations: 234.7 kB / 428.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.642e-05/0.2427, allocations: 52 kB / 428.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.326e-05/0.2428, allocations: 52 kB / 428.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.2429, allocations: 131.5 kB / 428.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002252/0.2431, allocations: 226.9 kB / 428.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00071/0.2438, allocations: 0.6456 MB / 429.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2438, allocations: 0 / 429.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2438, allocations: 0 / 429.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2439, allocations: 0 / 429.4 MB, free: 7.574 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001519/0.2454, allocations: 0.7895 MB / 430.2 MB, free: 6.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2454, allocations: 12.03 kB / 430.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.2455, allocations: 90.7 kB / 430.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.2456, allocations: 60.56 kB / 430.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005217/0.2462, allocations: 294.1 kB / 430.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.629e-05/0.2462, allocations: 41.69 kB / 430.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.298e-05/0.2463, allocations: 60.08 kB / 430.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008603/0.2471, allocations: 434.5 kB / 431.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.2472, allocations: 0 / 431.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.2472, allocations: 23.98 kB / 431.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.2472, allocations: 12 kB / 431.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008919/0.2481, allocations: 393 kB / 431.6 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.2507, allocations: 1.313 MB / 432.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007369/0.2514, allocations: 312.7 kB / 433.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004147/0.2518, allocations: 165.5 kB / 433.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.2519, allocations: 8.312 kB / 433.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.2519, allocations: 38.89 kB / 433.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.894e-06/0.2519, allocations: 0 / 433.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.003482/0.2554, allocations: 1.189 MB / 434.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.2555, allocations: 59.89 kB / 434.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/0.256, allocations: 405.5 kB / 435.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.343e-05/0.256, allocations: 37.7 kB / 435.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.2563, allocations: 304.6 kB / 435.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.2564, allocations: 198.3 kB / 435.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.2566, allocations: 114.3 kB / 435.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.2568, allocations: 362.7 kB / 436.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004639/0.2573, allocations: 181.2 kB / 436.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005457/0.2578, allocations: 303.2 kB / 436.5 MB, free: 184 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.2588, allocations: 496 kB / 437 MB, free: 15.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.2588, allocations: 3.938 kB / 437 MB, free: 15.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0016/0.2604, allocations: 0.7365 MB / 437.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2604, allocations: 4 kB / 437.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.2605, allocations: 4 kB / 437.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000568/0.261, allocations: 184.9 kB / 438 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005138/0.2615, allocations: 115.8 kB / 438.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004617/0.2662, allocations: 4.012 MB / 442.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004602/0.2666, allocations: 27.97 kB / 442.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.2667, allocations: 28 kB / 442.1 MB, free: 10.3 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 (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.0002714/0.2669, allocations: 184.7 kB / 442.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.575e-05/0.267, allocations: 55.61 kB / 442.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.2671, allocations: 64.95 kB / 442.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.2672, allocations: 4 kB / 442.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/0.2672, allocations: 8 kB / 442.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.2672, allocations: 11.92 kB / 442.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.2696, allocations: 1.197 MB / 443.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2696, allocations: 3.938 kB / 443.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003145/0.2699, allocations: 67.95 kB / 443.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004389/0.2704, allocations: 165.6 kB / 443.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.2704, allocations: 11.98 kB / 443.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004155/0.2746, allocations: 3.861 MB / 447.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.2746, allocations: 3.938 kB / 447.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.2759, allocations: 0.6924 MB / 448.5 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.276, allocations: 55.59 kB / 448.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.2761, allocations: 12 kB / 448.5 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/0.2764, allocations: 23.98 kB / 448.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.2765, allocations: 44.34 kB / 448.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.2765, allocations: 16 kB / 448.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003349/0.2768, allocations: 279.2 kB / 448.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2768, allocations: 0 / 448.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007301/0.2776, allocations: 152 kB / 449 MB, free: 3.074 MB / 350.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.00167/0.2792, allocations: 1.24 MB / 450.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.2809, allocations: 0.7651 MB / 451 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2809, allocations: 192 / 451 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008634/0.2817, allocations: 0.5085 MB / 451.5 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.2822, allocations: 53.31 kB / 451.6 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007633/0.2898, allocations: 4.616 MB / 456.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.2901, allocations: 263 kB / 456.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.2903, allocations: 44.38 kB / 456.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.2906, allocations: 175.4 kB / 456.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2906, allocations: 0 / 456.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04863/0.3392, allocations: 10.47 MB / 467.1 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.38, allocations: 10.23 kB / 467.1 MB, free: 0.7852 MB / 366.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.782289687078446]