Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001308/0.001308, allocations: 114.3 kB / 18.49 MB, free: 4.539 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.001363/0.001363, allocations: 219 kB / 21.46 MB, free: 1.586 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.405/1.405, allocations: 230.6 MB / 254.8 MB, free: 15.07 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+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(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 51.92 kB / 373.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, allocations: 53.32 MB / 427 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004001/0.1071, allocations: 2.818 MB / 429.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.1082, allocations: 0.6816 MB / 430.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1084, allocations: 4 kB / 430.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001652/0.1085, allocations: 51.5 kB / 430.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.1087, allocations: 95.12 kB / 430.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.109, allocations: 87.89 kB / 430.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000413/0.1094, allocations: 374.5 kB / 431.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.1096, allocations: 90.94 kB / 431.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001796/0.1098, allocations: 155.4 kB / 431.4 MB, free: 384 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.11, allocations: 159.4 kB / 431.5 MB, free: 224 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.347e-05/0.11, allocations: 32 kB / 431.6 MB, free: 192 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.567e-05/0.1101, allocations: 36 kB / 431.6 MB, free: 156 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.609e-05/0.1102, allocations: 75.69 kB / 431.7 MB, free: 80 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1904/0.3005, allocations: 165.5 kB / 431.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004985/0.301, allocations: 377.2 kB / 432.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.301, allocations: 0 / 432.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.301, allocations: 0 / 432.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.301, allocations: 0.5625 kB / 432.2 MB, free: 7.961 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001231/0.3023, allocations: 0.6588 MB / 432.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.3023, allocations: 8.781 kB / 432.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.287e-05/0.3023, allocations: 7.031 kB / 432.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.196e-05/0.3024, allocations: 64.81 kB / 432.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.905e-05/0.3025, allocations: 39.02 kB / 433 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.3029, allocations: 275.5 kB / 433.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.3029, allocations: 21.81 kB / 433.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.303, allocations: 21.22 kB / 433.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000671/0.3036, allocations: 303.4 kB / 433.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.3036, allocations: 0.6875 kB / 433.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.3037, allocations: 12.47 kB / 433.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.3037, allocations: 6.094 kB / 433.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007544/0.3044, allocations: 257.8 kB / 433.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.3058, allocations: 1.085 MB / 434.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007563/0.3066, allocations: 203.6 kB / 435.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.3069, allocations: 91.27 kB / 435.2 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.3069, allocations: 2.078 kB / 435.2 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004437/0.3073, allocations: 170.1 kB / 435.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.3073, allocations: 0 / 435.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.00207/0.3094, allocations: 0.511 MB / 435.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.3094, allocations: 105.9 kB / 436 MB, free: 6.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/0.3097, allocations: 288 kB / 436.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.3097, allocations: 31.02 kB / 436.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.895e-05/0.3098, allocations: 197 kB / 436.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.3099, allocations: 41.77 kB / 436.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.158e-05/0.3099, allocations: 52.03 kB / 436.6 MB, free: 5.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.425e-05/0.31, allocations: 338.2 kB / 436.9 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.3103, allocations: 93.64 kB / 437 MB, free: 5.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003563/0.3107, allocations: 202.2 kB / 437.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006408/0.3113, allocations: 308.2 kB / 437.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3113, allocations: 1.219 kB / 437.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001168/0.3125, allocations: 419.2 kB / 437.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.3125, allocations: 37.78 kB / 438 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.3125, allocations: 8.391 kB / 438 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/0.3129, allocations: 68.92 kB / 438.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.3131, allocations: 49.11 kB / 438.1 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/0.315, allocations: 1.71 MB / 439.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.3154, allocations: 57.31 kB / 439.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.3154, allocations: 11.81 kB / 439.9 MB, free: 3.703 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: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.3155, allocations: 155.2 kB / 440 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.597e-05/0.3156, allocations: 28.2 kB / 440.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.3156, allocations: 25.95 kB / 440.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3156, allocations: 1.406 kB / 440.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.3156, allocations: 2.062 kB / 440.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3156, allocations: 4.703 kB / 440.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.3158, allocations: 303.7 kB / 440.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3159, allocations: 1.562 kB / 440.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.316, allocations: 17.52 kB / 440.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002504/0.3162, allocations: 68.66 kB / 440.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.3162, allocations: 5.719 kB / 440.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001759/0.318, allocations: 1.704 MB / 442.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.318, allocations: 1.125 kB / 442.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000976/0.319, allocations: 315.2 kB / 442.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.872e-05/0.3191, allocations: 113.2 kB / 442.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/0.3191, allocations: 3.156 kB / 442.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.3193, allocations: 30.02 kB / 442.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.19e-05/0.3194, allocations: 20.39 kB / 442.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.3194, allocations: 7.109 kB / 442.7 MB, free: 1.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001801/0.3196, allocations: 204 kB / 442.9 MB, free: 1.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3196, allocations: 4 kB / 442.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.32, allocations: 77.08 kB / 442.9 MB, free: 1.578 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001154/0.3211, allocations: 0.8515 MB / 443.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009052/0.322, allocations: 403.6 kB / 444.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.322, allocations: 3.281 kB / 444.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.3224, allocations: 227.7 kB / 444.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.3227, allocations: 44.64 kB / 444.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005187/0.3279, allocations: 3.003 MB / 447.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.3283, allocations: 0.7532 MB / 448.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.3284, allocations: 27.55 kB / 448.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.3285, allocations: 78.78 kB / 448.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3285, allocations: 0 / 448.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.3563, allocations: 6.896 MB / 455.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.99, allocations: 14.62 kB / 455.2 MB, free: 12.19 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.30160220299149] Failed to read output from testmodel.py, exit status != 0: ['time', 'vIn.signalSource.y'] 12.148499770963099 12.164291439 11.860384682 Calling exit ...