Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008727/0.0008727, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008351/0.0008351, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9146/0.9146, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.294e-06/2.294e-06, allocations: 4 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.43e-05/1.659e-05, allocations: 3.547 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.003189/0.003205, allocations: 3.234 MB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.004318, allocations: 0.9307 MB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.004479, allocations: 8 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002187/0.004698, allocations: 103 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.00497, allocations: 178.6 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000245/0.005215, allocations: 167.6 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003969/0.005612, allocations: 0.658 MB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.00581, allocations: 134 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.006085, allocations: 363.1 kB / 330.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.006269, allocations: 199.4 kB / 330.5 MB, free: 9.906 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.006327, allocations: 52 kB / 330.5 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.089e-05/0.006378, allocations: 52 kB / 330.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.647e-05/0.006445, allocations: 123.5 kB / 330.7 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.006562, allocations: 199.4 kB / 330.9 MB, free: 9.488 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004201/0.006982, allocations: 0.6424 MB / 331.5 MB, free: 8.844 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.006984, allocations: 3.938 kB / 331.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.006986, allocations: 0 / 331.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.006992, allocations: 0 / 331.5 MB, free: 8.84 MB / 298.7 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.0008744/0.007866, allocations: 0.7856 MB / 332.3 MB, free: 8.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.007906, allocations: 11.98 kB / 332.3 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.916e-05/0.007975, allocations: 90.7 kB / 332.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.17e-05/0.008037, allocations: 68.52 kB / 332.5 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.008363, allocations: 297.3 kB / 332.8 MB, free: 7.523 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.008391, allocations: 41.62 kB / 332.8 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.605e-05/0.008438, allocations: 48.38 kB / 332.9 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005012/0.008939, allocations: 439 kB / 333.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.008953, allocations: 7.875 kB / 333.3 MB, free: 6.996 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/0.008981, allocations: 20 kB / 333.3 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.00899, allocations: 12 kB / 333.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005009/0.009491, allocations: 393 kB / 333.7 MB, free: 6.578 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.01126, allocations: 1.314 MB / 335 MB, free: 5.188 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004558/0.01172, allocations: 312.8 kB / 335.3 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.01196, allocations: 160.2 kB / 335.5 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.01199, allocations: 4.328 kB / 335.5 MB, free: 4.711 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.01201, allocations: 38.89 kB / 335.5 MB, free: 4.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.543e-06/0.01201, allocations: 0 / 335.5 MB, free: 4.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.001866/0.01387, allocations: 1.203 MB / 336.7 MB, free: 3.453 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.01391, allocations: 59.91 kB / 336.8 MB, free: 3.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.01421, allocations: 421.4 kB / 337.2 MB, free: 2.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.01423, allocations: 29.7 kB / 337.2 MB, free: 2.926 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.01438, allocations: 308.7 kB / 337.5 MB, free: 2.621 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.01447, allocations: 202.2 kB / 337.7 MB, free: 2.422 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.01457, allocations: 110.3 kB / 337.8 MB, free: 2.309 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.01467, allocations: 362.8 kB / 338.2 MB, free: 1.945 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.01492, allocations: 173.2 kB / 338.4 MB, free: 1.773 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000296/0.01521, allocations: 299.1 kB / 338.7 MB, free: 1.438 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005581/0.01577, allocations: 0.4963 MB / 339.2 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.01577, allocations: 0 / 339.2 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008432/0.01662, allocations: 0.7443 MB / 339.9 MB, free: 140 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.01663, allocations: 4 kB / 339.9 MB, free: 136 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.01664, allocations: 8.125 kB / 339.9 MB, free: 128 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003483/0.01699, allocations: 184.8 kB / 340.1 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.01724, allocations: 115.8 kB / 340.2 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/0.02011, allocations: 4.012 MB / 344.2 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.02029, allocations: 27.98 kB / 344.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.293e-05/0.02031, allocations: 24.05 kB / 344.3 MB, free: 11.54 MB / 314.7 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.0001569/0.02047, allocations: 185.7 kB / 344.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.715e-05/0.02051, allocations: 51.67 kB / 344.5 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.717e-05/0.02059, allocations: 65.06 kB / 344.6 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.02059, allocations: 4 kB / 344.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/0.02061, allocations: 11.94 kB / 344.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.02062, allocations: 3.984 kB / 344.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.02201, allocations: 1.211 MB / 345.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.02201, allocations: 0 / 345.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.02215, allocations: 63.95 kB / 345.9 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002489/0.0224, allocations: 169.5 kB / 346 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.02242, allocations: 12 kB / 346 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002548/0.02497, allocations: 3.842 MB / 349.9 MB, free: 5.621 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.02497, allocations: 12.09 kB / 349.9 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007171/0.02569, allocations: 0.6887 MB / 350.6 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.464e-05/0.02573, allocations: 51.77 kB / 350.6 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.02576, allocations: 19.88 kB / 350.6 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.0259, allocations: 23.97 kB / 350.7 MB, free: 4.793 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.64e-05/0.02598, allocations: 44.41 kB / 350.7 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.02599, allocations: 20.28 kB / 350.7 MB, free: 4.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002084/0.0262, allocations: 283.2 kB / 351 MB, free: 4.453 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0262, allocations: 0 / 351 MB, free: 4.453 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004396/0.02664, allocations: 155.9 kB / 351.2 MB, free: 4.301 MB / 314.7 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.0009434/0.02758, allocations: 1.244 MB / 352.4 MB, free: 3.012 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000951/0.02854, allocations: 0.7578 MB / 353.2 MB, free: 2.223 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.02854, allocations: 0 / 353.2 MB, free: 2.223 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.02898, allocations: 0.5127 MB / 353.7 MB, free: 1.688 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.02934, allocations: 41.64 kB / 353.7 MB, free: 1.648 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004841/0.03418, allocations: 4.678 MB / 358.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.03437, allocations: 263 kB / 358.7 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.03449, allocations: 48.36 kB / 358.7 MB, free: 12.44 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.03467, allocations: 176.4 kB / 358.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.403e-06/0.03468, allocations: 4 kB / 358.9 MB, free: 12.26 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02588/0.06055, allocations: 10.75 MB / 369.6 MB, free: 1.652 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.375, allocations: 3.859 kB / 369.6 MB, free: 1.648 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 9.003321348689497]