Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00145/0.00145, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.425/1.425, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB 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.00219/0.002191, allocations: 71.89 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3088, allocations: 50.53 MB / 409 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.00522/0.3141, allocations: 3.527 MB / 412.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.3162, allocations: 0.9541 MB / 413.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002673/0.3165, allocations: 8 kB / 413.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003148/0.3168, allocations: 99.08 kB / 413.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004334/0.3173, allocations: 162.7 kB / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004287/0.3177, allocations: 175.7 kB / 414 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006674/0.3184, allocations: 0.6425 MB / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003201/0.3187, allocations: 189.5 kB / 414.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.319, allocations: 239.1 kB / 415 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.3194, allocations: 270.7 kB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.065e-05/0.3195, allocations: 56 kB / 415.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.531e-05/0.3196, allocations: 52 kB / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.3197, allocations: 123.5 kB / 415.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002678/0.32, allocations: 286.5 kB / 415.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007108/0.3207, allocations: 0.6407 MB / 416.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3207, allocations: 0 / 416.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.3207, allocations: 0 / 416.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.3207, allocations: 0 / 416.4 MB, free: 9.961 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.001565/0.3223, allocations: 0.8725 MB / 417.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3224, allocations: 8.031 kB / 417.3 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.3225, allocations: 94.7 kB / 417.4 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.3226, allocations: 68.52 kB / 417.5 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005579/0.3231, allocations: 355.9 kB / 417.8 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/0.3232, allocations: 37.69 kB / 417.9 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.541e-05/0.3233, allocations: 56.12 kB / 417.9 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008513/0.3241, allocations: 430.5 kB / 418.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.3242, allocations: 0 / 418.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.3242, allocations: 27.98 kB / 418.4 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.3243, allocations: 12 kB / 418.4 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008702/0.3251, allocations: 397 kB / 418.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.3277, allocations: 1.57 MB / 420.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000756/0.3285, allocations: 409.4 kB / 420.7 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004251/0.3289, allocations: 185.5 kB / 420.9 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.329, allocations: 4.328 kB / 420.9 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.329, allocations: 38.89 kB / 421 MB, free: 5.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 2.614e-06/0.329, allocations: 0 / 421 MB, free: 5.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.003477/0.3325, allocations: 1.212 MB / 422.2 MB, free: 3.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.3326, allocations: 55.97 kB / 422.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005457/0.3331, allocations: 409.5 kB / 422.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.3332, allocations: 37.7 kB / 422.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.3334, allocations: 308.7 kB / 423 MB, free: 3.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.3336, allocations: 190.3 kB / 423.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.3338, allocations: 118.2 kB / 423.3 MB, free: 2.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.334, allocations: 362.7 kB / 423.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004452/0.3345, allocations: 181.1 kB / 423.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.335, allocations: 299.1 kB / 424.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009752/0.336, allocations: 0.4907 MB / 424.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.336, allocations: 3.938 kB / 424.6 MB, free: 1.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001561/0.3376, allocations: 0.7422 MB / 425.3 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.3376, allocations: 7.984 kB / 425.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3376, allocations: 4 kB / 425.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005747/0.3382, allocations: 180.7 kB / 425.5 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004921/0.3387, allocations: 123.8 kB / 425.6 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004594/0.3433, allocations: 4.266 MB / 429.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/0.3439, allocations: 35.92 kB / 429.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.425e-05/0.344, allocations: 24 kB / 430 MB, free: 11.74 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.0003111/0.3443, allocations: 174.8 kB / 430.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.925e-05/0.3444, allocations: 51.95 kB / 430.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001529/0.3445, allocations: 73.06 kB / 430.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3446, allocations: 7.938 kB / 430.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.046e-05/0.3446, allocations: 7.938 kB / 430.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3446, allocations: 0 / 430.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.3472, allocations: 1.304 MB / 431.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3472, allocations: 0 / 431.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.3476, allocations: 71.89 kB / 431.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004856/0.348, allocations: 169.6 kB / 431.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.3481, allocations: 12 kB / 431.8 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004323/0.3524, allocations: 4.095 MB / 435.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3525, allocations: 3.938 kB / 435.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.3539, allocations: 0.7095 MB / 436.6 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001645/0.3541, allocations: 128.7 kB / 436.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/0.3541, allocations: 12 kB / 436.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.3544, allocations: 19.97 kB / 436.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.3546, allocations: 44.38 kB / 436.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/0.3546, allocations: 16 kB / 436.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003586/0.355, allocations: 283.2 kB / 437.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.355, allocations: 4 kB / 437.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007495/0.3557, allocations: 152 kB / 437.3 MB, free: 4.02 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.001713/0.3575, allocations: 1.257 MB / 438.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.3592, allocations: 0.7923 MB / 439.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3592, allocations: 0 / 439.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009339/0.3602, allocations: 0.5202 MB / 439.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005043/0.3607, allocations: 50.12 kB / 439.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007766/0.3685, allocations: 4.689 MB / 444.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005512/0.3691, allocations: 0.8631 MB / 445.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.3693, allocations: 44.36 kB / 445.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/0.3695, allocations: 175.4 kB / 445.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3695, allocations: 7.938 kB / 445.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04262/0.4122, allocations: 9.817 MB / 455.5 MB, free: 1.672 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.46, allocations: 11.88 kB / 455.5 MB, free: 1.66 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1)