Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001294/0.001294, allocations: 109.4 kB / 19.8 MB, free: 2.516 MB / 14.72 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.001565/0.001565, allocations: 220.6 kB / 23 MB, free: 5.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.5/1.5, allocations: 230.4 MB / 256.5 MB, free: 8.441 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-beta.om/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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002206/0.002206, allocations: 59.91 kB / 376.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2869, allocations: 53.32 MB / 429.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007075/0.294, allocations: 5.113 MB / 434.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003909/0.2979, allocations: 2.176 MB / 436.8 MB, free: 112 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003518/0.2983, allocations: 20 kB / 436.8 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003211/0.3015, allocations: 1.405 MB / 438.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.3027, allocations: 421.4 kB / 438.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002359/0.3051, allocations: 1.206 MB / 439.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.3061, allocations: 0.7395 MB / 440.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008291/0.3069, allocations: 0.5022 MB / 441.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000467/0.3074, allocations: 330.8 kB / 441.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005012/0.3079, allocations: 426.3 kB / 441.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.647e-05/0.308, allocations: 68 kB / 441.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008769/0.3089, allocations: 419.6 kB / 442.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.309, allocations: 163.4 kB / 442.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003546/0.3094, allocations: 370.2 kB / 442.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.311, allocations: 1.218 MB / 444.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.311, allocations: 4 kB / 444.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.311, allocations: 3.938 kB / 444.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.311, allocations: 0 / 444.1 MB, free: 8.836 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004456/0.3154, allocations: 1.477 MB / 445.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.3155, allocations: 12.03 kB / 445.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001675/0.3157, allocations: 135.4 kB / 445.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002555/0.3182, allocations: 368.1 kB / 446.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.3186, allocations: 248.9 kB / 446.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.936e-05/0.3186, allocations: 66.38 kB / 446.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.3188, allocations: 80.38 kB / 446.4 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.3206, allocations: 0.8798 MB / 447.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/0.3206, allocations: 3.953 kB / 447.3 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.04e-05/0.3207, allocations: 35.94 kB / 447.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.3207, allocations: 20 kB / 447.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.3226, allocations: 0.7847 MB / 448.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004755/0.3273, allocations: 3.026 MB / 451.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.3287, allocations: 0.961 MB / 452.1 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005184/0.3292, allocations: 214.4 kB / 452.4 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002104/0.3294, allocations: 186.7 kB / 452.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.3294, allocations: 35.12 kB / 452.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.355e-06/0.3294, allocations: 4 kB / 452.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007506/0.3369, allocations: 2.397 MB / 455 MB, free: 13.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.337, allocations: 81.67 kB / 455.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000363/0.3374, allocations: 315.1 kB / 455.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.3374, allocations: 37.7 kB / 455.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.3377, allocations: 367.9 kB / 455.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.3379, allocations: 222.1 kB / 456 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.3381, allocations: 146.5 kB / 456.1 MB, free: 12.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.3383, allocations: 350.7 kB / 456.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007522/0.339, allocations: 269.8 kB / 456.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009494/0.34, allocations: 0.5081 MB / 457.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001763/0.3418, allocations: 0.7959 MB / 458 MB, free: 10.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3418, allocations: 4 kB / 458 MB, free: 10.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002119/0.3439, allocations: 0.8988 MB / 458.9 MB, free: 9.109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3439, allocations: 8 kB / 458.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.3439, allocations: 11.94 kB / 459 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002533/0.3442, allocations: 73.67 kB / 459 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008583/0.345, allocations: 195.7 kB / 459.2 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002486/0.3475, allocations: 2.873 MB / 462.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006053/0.3481, allocations: 55.95 kB / 462.1 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.396e-05/0.3482, allocations: 39.98 kB / 462.2 MB, free: 5.582 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0003283/0.3485, allocations: 217.7 kB / 462.4 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.3486, allocations: 47.66 kB / 462.4 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00202/0.3506, allocations: 0.7233 MB / 463.2 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.3506, allocations: 8 kB / 463.2 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3507, allocations: 0 / 463.2 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3507, allocations: 7.984 kB / 463.2 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002698/0.3534, allocations: 1.417 MB / 464.6 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.3534, allocations: 0 / 464.6 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000641/0.354, allocations: 135.8 kB / 464.7 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.3542, allocations: 53.69 kB / 464.8 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.263e-05/0.3542, allocations: 15.98 kB / 464.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.3564, allocations: 2.853 MB / 467.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3565, allocations: 0 / 467.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002632/0.3591, allocations: 1.083 MB / 468.7 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002372/0.3593, allocations: 164.8 kB / 468.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.3594, allocations: 12 kB / 468.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004723/0.3599, allocations: 52 kB / 469 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.36, allocations: 40.5 kB / 469 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.36, allocations: 19.98 kB / 469 MB, free: 14.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002411/0.3603, allocations: 207.1 kB / 469.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3603, allocations: 0 / 469.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000772/0.361, allocations: 176 kB / 469.4 MB, free: 13.96 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (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,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.003197/0.3642, allocations: 1.686 MB / 471.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.3663, allocations: 0.8799 MB / 472 MB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3663, allocations: 1.25 kB / 472 MB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.3674, allocations: 0.5199 MB / 472.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.3678, allocations: 44.59 kB / 472.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009587/0.3774, allocations: 5.089 MB / 477.6 MB, free: 5.367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.378, allocations: 0.8849 MB / 478.5 MB, free: 4.457 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003642/0.3783, allocations: 80.53 kB / 478.6 MB, free: 4.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003972/0.3787, allocations: 231.3 kB / 478.8 MB, free: 4.148 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3787, allocations: 0 / 478.8 MB, free: 4.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04509/0.4238, allocations: 11.38 MB / 490.2 MB, free: 8.918 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.98, allocations: 0 / 490.2 MB, free: 8.918 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.402276976994472] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 13.068960539007094 13.084578271 12.77017868 Calling exit ...