Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.00173/0.00173, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002223/0.002223, allocations: 212.2 kB / 24.52 MB, free: 4.074 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.375/1.375, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 43.92 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2521, allocations: 53.37 MB / 431.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005202/0.2573, allocations: 3.563 MB / 435.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.2592, allocations: 0.9697 MB / 436.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/0.2594, allocations: 11.94 kB / 436.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000303/0.2597, allocations: 91.11 kB / 436.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004065/0.2601, allocations: 166.7 kB / 436.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.2605, allocations: 175.8 kB / 436.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006469/0.2611, allocations: 0.6425 MB / 437.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.2614, allocations: 143.1 kB / 437.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002824/0.2617, allocations: 243 kB / 437.9 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.262, allocations: 278.6 kB / 438.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.657e-05/0.2621, allocations: 52 kB / 438.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.035e-05/0.2622, allocations: 52 kB / 438.3 MB, free: 456 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.808e-05/0.2623, allocations: 119.5 kB / 438.4 MB, free: 336 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.2625, allocations: 294.5 kB / 438.7 MB, free: 40 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006809/0.2632, allocations: 0.6335 MB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2632, allocations: 3.938 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2632, allocations: 4 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.2632, allocations: 0 / 439.3 MB, free: 15.39 MB / 350.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.00146/0.2647, allocations: 0.7972 MB / 440.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.2647, allocations: 12.03 kB / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.484e-05/0.2647, allocations: 13.5 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.758e-05/0.2648, allocations: 90.7 kB / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.2649, allocations: 68.45 kB / 440.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.2654, allocations: 294.1 kB / 440.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.2655, allocations: 41.69 kB / 440.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.476e-05/0.2656, allocations: 51.94 kB / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007994/0.2664, allocations: 438.5 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.2664, allocations: 0 / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.445e-05/0.2664, allocations: 20 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.2664, allocations: 12 kB / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008394/0.2673, allocations: 393 kB / 441.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002486/0.2697, allocations: 1.505 MB / 443 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006682/0.2704, allocations: 304.3 kB / 443.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003927/0.2708, allocations: 161.4 kB / 443.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.834e-05/0.2708, allocations: 8.391 kB / 443.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.2709, allocations: 38.89 kB / 443.5 MB, free: 11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.653e-06/0.2709, allocations: 3.938 kB / 443.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.003256/0.2741, allocations: 1.199 MB / 444.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.2742, allocations: 59.91 kB / 444.8 MB, free: 9.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004588/0.2746, allocations: 413.5 kB / 445.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.2747, allocations: 37.7 kB / 445.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.2749, allocations: 304.7 kB / 445.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.275, allocations: 198.3 kB / 445.7 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.2752, allocations: 114.3 kB / 445.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.2754, allocations: 354.8 kB / 446.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004282/0.2758, allocations: 177.2 kB / 446.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005097/0.2763, allocations: 307 kB / 446.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009461/0.2773, allocations: 499.9 kB / 447.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.2773, allocations: 4 kB / 447.2 MB, free: 7.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001494/0.2788, allocations: 0.7327 MB / 447.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.2788, allocations: 8 kB / 447.9 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.2788, allocations: 0 / 447.9 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000563/0.2794, allocations: 185.5 kB / 448.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004704/0.2798, allocations: 107.9 kB / 448.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004393/0.2842, allocations: 4.089 MB / 452.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.2847, allocations: 27.94 kB / 452.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.2847, allocations: 36.03 kB / 452.3 MB, free: 1.816 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.0002645/0.285, allocations: 173.7 kB / 452.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.284e-05/0.285, allocations: 51.66 kB / 452.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.2852, allocations: 61.08 kB / 452.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2852, allocations: 4 kB / 452.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-05/0.2852, allocations: 7.938 kB / 452.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2852, allocations: 3.984 kB / 452.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.2875, allocations: 1.271 MB / 453.9 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.2875, allocations: 3.984 kB / 453.9 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.2878, allocations: 71.97 kB / 454 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004287/0.2882, allocations: 161.6 kB / 454.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.798e-05/0.2883, allocations: 8 kB / 454.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003834/0.2921, allocations: 3.9 MB / 458 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.2921, allocations: 7.875 kB / 458.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.2934, allocations: 0.6962 MB / 458.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.758e-05/0.2935, allocations: 47.66 kB / 458.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.001e-05/0.2935, allocations: 8 kB / 458.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.2938, allocations: 27.98 kB / 458.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.294, allocations: 52.28 kB / 458.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.537e-05/0.294, allocations: 12 kB / 458.9 MB, free: 10.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003437/0.2943, allocations: 287.1 kB / 459.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2943, allocations: 0 / 459.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006865/0.295, allocations: 152 kB / 459.3 MB, free: 10.5 MB / 366.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.001626/0.2966, allocations: 1.24 MB / 460.6 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.2982, allocations: 0.7651 MB / 461.3 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.2982, allocations: 0 / 461.3 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008471/0.299, allocations: 0.5085 MB / 461.8 MB, free: 7.879 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.2995, allocations: 47.98 kB / 461.9 MB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007192/0.3067, allocations: 4.667 MB / 466.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.3072, allocations: 0.863 MB / 467.4 MB, free: 2.082 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001808/0.3073, allocations: 52.36 kB / 467.5 MB, free: 2.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002417/0.3076, allocations: 175.4 kB / 467.6 MB, free: 1.855 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3076, allocations: 0 / 467.6 MB, free: 1.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0433/0.3509, allocations: 10.39 MB / 478 MB, free: 7.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.25, allocations: 4 kB / 478 MB, free: 7.621 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.535476832010318] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 12.406718584010378 12.420333647 12.154302961 Calling exit ...