Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.001162/0.001162, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008166/0.0008166, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9069/0.9069, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 318.4 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.614e-05/1.759e-05, allocations: 6.219 kB / 318.5 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.003715/0.003732, allocations: 4.389 MB / 322.8 MB, free: 1.898 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.005749, allocations: 1.237 MB / 324.1 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002886/0.006038, allocations: 11.94 kB / 324.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.006258, allocations: 134.6 kB / 324.2 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003361/0.006594, allocations: 269.5 kB / 324.5 MB, free: 248 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006533/0.007247, allocations: 315.4 kB / 324.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.008417, allocations: 1.138 MB / 325.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.008656, allocations: 171 kB / 326.1 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005545/0.00921, allocations: 0.612 MB / 326.7 MB, free: 14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.009533, allocations: 362.9 kB / 327.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.412e-05/0.009617, allocations: 96 kB / 327.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.009751, allocations: 112 kB / 327.3 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.009853, allocations: 203.2 kB / 327.5 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.01005, allocations: 319.2 kB / 327.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007626/0.01082, allocations: 1.094 MB / 328.9 MB, free: 11.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.01082, allocations: 0 / 328.9 MB, free: 11.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01082, allocations: 0 / 328.9 MB, free: 11.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.01084, allocations: 0 / 328.9 MB, free: 11.83 MB / 298.7 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.001573/0.01241, allocations: 1.193 MB / 330.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.01245, allocations: 8.922 kB / 330.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.18e-05/0.01253, allocations: 110.7 kB / 330.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.01263, allocations: 104.3 kB / 330.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.01306, allocations: 425.3 kB / 330.7 MB, free: 9.922 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.01309, allocations: 49.69 kB / 330.8 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.729e-05/0.01316, allocations: 60.38 kB / 330.8 MB, free: 9.812 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008657/0.01403, allocations: 0.7845 MB / 331.6 MB, free: 8.992 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.01405, allocations: 192 / 331.6 MB, free: 8.992 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.788e-05/0.01409, allocations: 32.12 kB / 331.6 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.01411, allocations: 12 kB / 331.6 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.01531, allocations: 0.6921 MB / 332.3 MB, free: 8.258 MB / 298.7 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.002213/0.01752, allocations: 1.894 MB / 334.2 MB, free: 6.273 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008209/0.01834, allocations: 0.5595 MB / 334.8 MB, free: 5.707 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000404/0.01875, allocations: 310.8 kB / 335.1 MB, free: 5.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.01878, allocations: 12.44 kB / 335.1 MB, free: 5.383 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005576/0.01934, allocations: 0.542 MB / 335.6 MB, free: 4.789 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.512e-06/0.01934, allocations: 0 / 335.6 MB, free: 4.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.03293/0.05227, allocations: 15.23 MB / 350.9 MB, free: 5.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.05234, allocations: 145.5 kB / 351 MB, free: 5.316 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.05275, allocations: 0.5263 MB / 351.5 MB, free: 4.785 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.43e-05/0.05283, allocations: 53.7 kB / 351.6 MB, free: 4.727 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.05302, allocations: 388.7 kB / 352 MB, free: 4.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.05322, allocations: 329.2 kB / 352.3 MB, free: 4.016 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.05346, allocations: 178.6 kB / 352.5 MB, free: 3.836 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.05357, allocations: 386.8 kB / 352.8 MB, free: 3.449 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.05496, allocations: 0.7862 MB / 353.6 MB, free: 2.648 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.05619, allocations: 1.088 MB / 354.7 MB, free: 1.441 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002268/0.05846, allocations: 1.693 MB / 356.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.05847, allocations: 4 kB / 356.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01151/0.06998, allocations: 5.401 MB / 361.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.599e-05/0.07003, allocations: 78.17 kB / 361.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.07004, allocations: 4 kB / 361.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01588/0.08592, allocations: 6.825 MB / 368.7 MB, free: 3.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003867/0.0863, allocations: 147.7 kB / 368.9 MB, free: 3.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003364/0.08967, allocations: 3.016 MB / 371.9 MB, free: 64 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007858/0.09045, allocations: 175.9 kB / 372.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.686e-05/0.09052, allocations: 47.97 kB / 372.1 MB, free: 15.84 MB / 346.7 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.0002938/0.09081, allocations: 225.6 kB / 372.3 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.731e-05/0.09091, allocations: 87.48 kB / 372.4 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01082/0.1017, allocations: 5.072 MB / 377.5 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.1017, allocations: 8 kB / 377.5 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1017, allocations: 4 kB / 377.5 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.1017, allocations: 7.922 kB / 377.5 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008289/0.1026, allocations: 0.8549 MB / 378.4 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.1026, allocations: 0 / 378.4 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.1028, allocations: 91.88 kB / 378.4 MB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01587/0.1187, allocations: 6.778 MB / 385.2 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.331e-05/0.1188, allocations: 31.91 kB / 385.3 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003352/0.1221, allocations: 3.033 MB / 388.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1222, allocations: 0 / 388.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/0.1342, allocations: 5.949 MB / 394.2 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.1344, allocations: 75.45 kB / 394.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.812e-05/0.1345, allocations: 23.94 kB / 394.3 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006061/0.1351, allocations: 167.9 kB / 394.5 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.1352, allocations: 104.8 kB / 394.6 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-05/0.1353, allocations: 31.98 kB / 394.6 MB, free: 9.137 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002834/0.1356, allocations: 350.8 kB / 395 MB, free: 8.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1356, allocations: 4 kB / 395 MB, free: 8.789 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005445/0.1361, allocations: 256 kB / 395.2 MB, free: 8.539 MB / 362.7 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.01221/0.1483, allocations: 6.525 MB / 401.8 MB, free: 1.969 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00329/0.1516, allocations: 2.019 MB / 403.8 MB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1516, allocations: 0 / 403.8 MB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002108/0.1537, allocations: 1.028 MB / 404.8 MB, free: 14.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.1542, allocations: 134.4 kB / 404.9 MB, free: 14.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02893/0.1832, allocations: 16.12 MB / 421.1 MB, free: 14.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.1834, allocations: 357.8 kB / 421.4 MB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.1836, allocations: 58.27 kB / 421.5 MB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/0.1838, allocations: 280.4 kB / 421.7 MB, free: 13.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.263e-06/0.1838, allocations: 0 / 421.7 MB, free: 13.55 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04129/0.2251, allocations: 27.07 MB / 448.8 MB, free: 2.711 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.683/8.909, allocations: 6.609 kB / 448.8 MB, free: 2.707 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.748370894230902] Failed to read output from testmodel.py, exit status != 0: ['time', 'HeatCapacitor1.T'] 9.0113506577909 9.16782377 9.155742267 Calling exit ...