Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002168/0.002168, allocations: 190.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002318/0.002318, allocations: 51.92 kB / 370.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2704, allocations: 52.17 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006321/0.2767, allocations: 4.412 MB / 427 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002753/0.2795, allocations: 1.241 MB / 428.2 MB, free: 8.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005452/0.28, allocations: 15.88 kB / 428.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000415/0.2804, allocations: 122.7 kB / 428.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007664/0.2812, allocations: 261.6 kB / 428.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008649/0.2821, allocations: 315.5 kB / 428.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.2835, allocations: 1.095 MB / 430 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000365/0.2838, allocations: 180.7 kB / 430.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005812/0.2844, allocations: 426.6 kB / 430.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000552/0.285, allocations: 422 kB / 431 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.2851, allocations: 88 kB / 431.1 MB, free: 5.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002413/0.2854, allocations: 116 kB / 431.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002014/0.2856, allocations: 203.3 kB / 431.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004186/0.286, allocations: 382.2 kB / 431.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.2871, allocations: 1.043 MB / 432.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.2872, allocations: 4 kB / 432.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.2872, allocations: 0 / 432.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.2872, allocations: 0 / 432.9 MB, free: 4.059 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002547/0.2897, allocations: 1.202 MB / 434.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2898, allocations: 19.97 kB / 434.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.2899, allocations: 106.7 kB / 434.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.2901, allocations: 96.38 kB / 434.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007245/0.2908, allocations: 438 kB / 434.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/0.2908, allocations: 45.69 kB / 434.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.2909, allocations: 64.38 kB / 434.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.2924, allocations: 0.7841 MB / 435.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.2924, allocations: 0 / 435.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-05/0.2925, allocations: 27.94 kB / 435.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.2925, allocations: 16 kB / 435.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.2942, allocations: 0.6922 MB / 436.3 MB, free: 472 kB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003682/0.2979, allocations: 1.893 MB / 438.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.2994, allocations: 0.5514 MB / 438.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007328/0.3001, allocations: 314 kB / 439.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.409e-05/0.3001, allocations: 4.438 kB / 439.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009863/0.3011, allocations: 0.541 MB / 439.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.094e-06/0.3011, allocations: 0 / 439.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06643/0.3676, allocations: 15.25 MB / 454.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.3677, allocations: 145.5 kB / 455 MB, free: 13.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007169/0.3684, allocations: 0.5302 MB / 455.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001738/0.3686, allocations: 49.7 kB / 455.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003178/0.3689, allocations: 392.7 kB / 456 MB, free: 12.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003041/0.3692, allocations: 337.2 kB / 456.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003537/0.3695, allocations: 178.6 kB / 456.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.3697, allocations: 390.7 kB / 456.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/0.3718, allocations: 0.7824 MB / 457.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002234/0.374, allocations: 1.088 MB / 458.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004049/0.3781, allocations: 1.685 MB / 460.4 MB, free: 7.863 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.3781, allocations: 0 / 460.4 MB, free: 7.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02259/0.4007, allocations: 5.401 MB / 465.8 MB, free: 2.414 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.46e-05/0.4008, allocations: 67.39 kB / 465.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4008, allocations: 12.12 kB / 465.9 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0329/0.4337, allocations: 6.833 MB / 472.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007159/0.4344, allocations: 155.6 kB / 472.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006802/0.4412, allocations: 3.172 MB / 476 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.4428, allocations: 175.9 kB / 476.2 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.443, allocations: 51.91 kB / 476.3 MB, free: 7.875 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004577/0.4434, allocations: 225.7 kB / 476.5 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.4436, allocations: 83.48 kB / 476.6 MB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02144/0.465, allocations: 5.064 MB / 481.6 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.465, allocations: 8.25 kB / 481.6 MB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.465, allocations: 0 / 481.6 MB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.242e-05/0.4651, allocations: 11.92 kB / 481.7 MB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.4666, allocations: 0.858 MB / 482.5 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.4666, allocations: 0 / 482.5 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.4671, allocations: 99.81 kB / 482.6 MB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03282/0.5, allocations: 6.789 MB / 489.4 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001977/0.5002, allocations: 27.97 kB / 489.4 MB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006043/0.5062, allocations: 3.056 MB / 492.5 MB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.5062, allocations: 0 / 492.5 MB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02395/0.5302, allocations: 5.945 MB / 498.4 MB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.5304, allocations: 75.41 kB / 498.5 MB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002392/0.5306, allocations: 23.98 kB / 498.5 MB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/0.532, allocations: 167.9 kB / 498.7 MB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002652/0.5323, allocations: 100.8 kB / 498.8 MB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.27e-05/0.5324, allocations: 31.97 kB / 498.8 MB, free: 1.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004517/0.5328, allocations: 354.8 kB / 499.2 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5328, allocations: 0 / 499.2 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008291/0.5336, allocations: 263.9 kB / 499.4 MB, free: 0.5469 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02471/0.5584, allocations: 6.535 MB / 0.4941 GB, free: 9.969 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007242/0.5656, allocations: 2.157 MB / 0.4962 GB, free: 7.773 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/0.5656, allocations: 4 kB / 0.4962 GB, free: 7.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003575/0.5692, allocations: 1.023 MB / 0.4972 GB, free: 6.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.5702, allocations: 134.4 kB / 0.4973 GB, free: 6.621 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05595/0.6261, allocations: 16.13 MB / 0.5131 GB, free: 6.109 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.6266, allocations: 349.8 kB / 0.5134 GB, free: 5.738 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003961/0.627, allocations: 62.25 kB / 0.5135 GB, free: 5.676 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004563/0.6275, allocations: 279.3 kB / 0.5137 GB, free: 5.402 MB / 430.1 MB Notification: Performance of SimCode: time 1.743e-06/0.6275, allocations: 0 / 0.5137 GB, free: 5.402 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2466/0.8741, allocations: 26.98 MB / 0.5401 GB, free: 117.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.5/14.38, allocations: 7.5 kB / 0.5401 GB, free: 117.9 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0396747 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.88258566800505] Failed to read output from testmodel.py, exit status != 0: ['time', 'HeatCapacitor1.T'] 14.509522015694529 14.519175947 14.22980128 Calling exit ...