Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.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.001801/0.001801, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.002406/0.002406, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.463/1.463, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2145/0.2145, allocations: 44.92 MB / 359.6 MB, free: 6.273 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 55.91 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.31, allocations: 65.47 MB / 0.5578 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.003028/0.313, allocations: 1.75 MB / 0.5595 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001605/0.3132, allocations: 79.72 kB / 0.5596 GB, free: 5.957 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.152e-05/0.3132, allocations: 4 kB / 0.5596 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.387e-05/0.3133, allocations: 11.86 kB / 0.5596 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.109e-05/0.3133, allocations: 27.72 kB / 0.5596 GB, free: 5.914 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.817e-05/0.3134, allocations: 31.95 kB / 0.5596 GB, free: 5.883 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.3136, allocations: 103.6 kB / 0.5597 GB, free: 5.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.3138, allocations: 48.03 kB / 0.5598 GB, free: 5.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.885e-05/0.3138, allocations: 39.86 kB / 0.5598 GB, free: 5.699 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.983e-05/0.3139, allocations: 55.77 kB / 0.5599 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/0.3139, allocations: 15.94 kB / 0.5599 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.027e-05/0.314, allocations: 12 kB / 0.5599 GB, free: 5.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.314, allocations: 23.91 kB / 0.5599 GB, free: 5.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.991e-05/0.314, allocations: 47.8 kB / 0.56 GB, free: 5.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.3142, allocations: 115.5 kB / 0.5601 GB, free: 5.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.3142, allocations: 4 kB / 0.5601 GB, free: 5.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3142, allocations: 3.938 kB / 0.5601 GB, free: 5.426 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3142, allocations: 0 / 0.5601 GB, free: 5.426 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005981/0.3148, allocations: 345.9 kB / 0.5604 GB, free: 5.055 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.3149, allocations: 12.03 kB / 0.5604 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.263e-05/0.3149, allocations: 192 / 0.5604 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.247e-05/0.3149, allocations: 46.73 kB / 0.5605 GB, free: 4.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.326e-05/0.315, allocations: 8.891 kB / 0.5605 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.3151, allocations: 130.3 kB / 0.5606 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.3151, allocations: 12.38 kB / 0.5606 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.3151, allocations: 4.375 kB / 0.5606 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003458/0.3155, allocations: 129.6 kB / 0.5607 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.3155, allocations: 0 / 0.5607 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.3155, allocations: 3.984 kB / 0.5607 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.3155, allocations: 8 kB / 0.5607 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003649/0.3159, allocations: 111.8 kB / 0.5608 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007598/0.3166, allocations: 446.4 kB / 0.5613 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.3169, allocations: 78.53 kB / 0.5613 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/0.3171, allocations: 60.94 kB / 0.5614 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.3171, allocations: 0 / 0.5614 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.3172, allocations: 34.5 kB / 0.5614 GB, free: 3.883 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 8.51e-07/0.3172, allocations: 0 / 0.5614 GB, free: 3.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008117/0.318, allocations: 194.3 kB / 0.5616 GB, free: 3.684 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.318, allocations: 55.41 kB / 0.5617 GB, free: 3.617 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.3181, allocations: 121.8 kB / 0.5618 GB, free: 3.488 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.3181, allocations: 29.7 kB / 0.5618 GB, free: 3.453 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.995e-05/0.3182, allocations: 108.2 kB / 0.5619 GB, free: 3.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.3182, allocations: 15.8 kB / 0.5619 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.026e-05/0.3183, allocations: 21.72 kB / 0.562 GB, free: 3.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3184, allocations: 322.8 kB / 0.5623 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.3186, allocations: 35.95 kB / 0.5623 GB, free: 2.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.3188, allocations: 58.55 kB / 0.5624 GB, free: 2.871 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.3191, allocations: 98.44 kB / 0.5625 GB, free: 2.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3191, allocations: 4 kB / 0.5625 GB, free: 2.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004225/0.3195, allocations: 146.3 kB / 0.5626 GB, free: 2.609 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3195, allocations: 4 kB / 0.5626 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3195, allocations: 0 / 0.5626 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001491/0.3197, allocations: 24.84 kB / 0.5626 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.3198, allocations: 24.03 kB / 0.5626 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.321, allocations: 1.311 MB / 0.5639 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.3211, allocations: 19.92 kB / 0.5639 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-06/0.3211, allocations: 3.938 kB / 0.564 GB, free: 1.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.3212, allocations: 121.8 kB / 0.5641 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.173e-05/0.3213, allocations: 11.89 kB / 0.5641 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.179e-05/0.3213, allocations: 8.375 kB / 0.5641 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.3213, allocations: 4 kB / 0.5641 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3213, allocations: 4.062 kB / 0.5641 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3213, allocations: 3.984 kB / 0.5641 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006893/0.322, allocations: 391.2 kB / 0.5645 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.322, allocations: 0 / 0.5645 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.454e-05/0.3221, allocations: 20.02 kB / 0.5645 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-05/0.3222, allocations: 24.78 kB / 0.5645 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.3222, allocations: 0 / 0.5645 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.3233, allocations: 1.303 MB / 0.5658 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3233, allocations: 0 / 0.5658 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004767/0.3238, allocations: 241.2 kB / 0.566 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.701e-05/0.3238, allocations: 11.95 kB / 0.566 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.3238, allocations: 0 / 0.566 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.324, allocations: 16.11 kB / 0.566 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.324, allocations: 15.92 kB / 0.5661 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.324, allocations: 7.922 kB / 0.5661 GB, free: 14.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.026e-05/0.3241, allocations: 95.66 kB / 0.5662 GB, free: 14.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3241, allocations: 4 kB / 0.5662 GB, free: 14.63 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002777/0.3244, allocations: 27.89 kB / 0.5662 GB, free: 14.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0008198/0.3252, allocations: 0.7648 MB / 0.5669 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005362/0.3257, allocations: 198.5 kB / 0.5671 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.3257, allocations: 4 kB / 0.5671 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.326, allocations: 162.7 kB / 0.5673 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.3263, allocations: 8 kB / 0.5673 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.3287, allocations: 1.611 MB / 0.5689 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.3291, allocations: 0.6924 MB / 0.5695 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.094e-05/0.3292, allocations: 7.75 kB / 0.5695 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.909e-05/0.3292, allocations: 27.36 kB / 0.5696 GB, free: 10.95 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3292, allocations: 4 kB / 0.5696 GB, free: 10.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.3538, allocations: 2.491 MB / 0.572 GB, free: 8.605 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.08, allocations: 2.812 kB / 0.572 GB, free: 8.605 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --stepSize=0.00019984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.02720152202528] Failed to read output from testmodel.py, exit status != 0: ['time', 'reluctance.V_m', 'reluctance.Phi', 'permeance.V_m', 'permeance.Phi'] 12.251796922006179 12.282233475 11.962478803 Calling exit ...