Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.001754/0.001754, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.001311/0.001311, allocations: 189 kB / 21.43 MB, free: 1.641 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.395/1.395, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 47.94 kB / 366.4 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.09637, allocations: 52.14 MB / 418.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00446/0.1008, allocations: 2.937 MB / 421.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1022, allocations: 0.7401 MB / 422.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.1023, allocations: 4 kB / 422.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.1025, allocations: 51.5 kB / 422.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.1027, allocations: 107.1 kB / 422.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.103, allocations: 119.8 kB / 422.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000473/0.1035, allocations: 414.5 kB / 422.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.1037, allocations: 83.28 kB / 423 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.1039, allocations: 159.4 kB / 423.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.1041, allocations: 175.2 kB / 423.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.129e-05/0.1042, allocations: 48 kB / 423.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.907e-05/0.1042, allocations: 40 kB / 423.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.093e-05/0.1043, allocations: 79.75 kB / 423.4 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.1045, allocations: 175.1 kB / 423.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.105, allocations: 450.3 kB / 424.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.105, allocations: 7.875 kB / 424.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.105, allocations: 0 / 424.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.105, allocations: 0 / 424.1 MB, free: 6.977 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001339/0.1063, allocations: 0.6844 MB / 424.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1064, allocations: 12.03 kB / 424.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.191e-05/0.1064, allocations: 4.75 kB / 424.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.451e-05/0.1065, allocations: 62.72 kB / 424.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.697e-05/0.1066, allocations: 40.75 kB / 424.9 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004544/0.107, allocations: 295.8 kB / 425.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.107, allocations: 20.94 kB / 425.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.1071, allocations: 24.38 kB / 425.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007639/0.1078, allocations: 331.5 kB / 425.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1079, allocations: 3.984 kB / 425.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.798e-05/0.1079, allocations: 8 kB / 425.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1079, allocations: 8 kB / 425.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008952/0.1088, allocations: 286.1 kB / 425.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.1108, allocations: 1.143 MB / 427 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009218/0.1117, allocations: 246.5 kB / 427.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/0.1121, allocations: 97 kB / 427.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.1121, allocations: 7.938 kB / 427.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000523/0.1126, allocations: 177.9 kB / 427.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.325e-06/0.1126, allocations: 4 kB / 427.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002443/0.1151, allocations: 0.6662 MB / 428.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.204e-05/0.1151, allocations: 114.7 kB / 428.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003366/0.1155, allocations: 282.7 kB / 428.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.1155, allocations: 25.7 kB / 428.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.1157, allocations: 212 kB / 428.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.276e-05/0.1157, allocations: 39.69 kB / 428.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.552e-05/0.1158, allocations: 53.89 kB / 428.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1159, allocations: 338.8 kB / 429.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003679/0.1163, allocations: 100.4 kB / 429.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.1168, allocations: 205.6 kB / 429.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000753/0.1175, allocations: 311.7 kB / 429.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.1175, allocations: 3.938 kB / 429.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00129/0.1188, allocations: 470 kB / 430.3 MB, free: 384 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.998e-05/0.1189, allocations: 33.7 kB / 430.3 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1189, allocations: 4.062 kB / 430.3 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003811/0.1192, allocations: 84.73 kB / 430.4 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/0.1195, allocations: 55.89 kB / 430.4 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002799/0.1223, allocations: 2.001 MB / 432.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.1226, allocations: 51.75 kB / 432.5 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.1226, allocations: 12 kB / 432.5 MB, free: 13.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.1228, allocations: 165.6 kB / 432.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.255e-05/0.1229, allocations: 23.86 kB / 432.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.554e-05/0.1229, allocations: 25.83 kB / 432.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1229, allocations: 4 kB / 432.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.1229, allocations: 0 / 432.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.1229, allocations: 3.938 kB / 432.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003331/0.1233, allocations: 317.5 kB / 433 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1233, allocations: 0 / 433 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.1234, allocations: 23.97 kB / 433 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002875/0.1237, allocations: 84.8 kB / 433.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1237, allocations: 0 / 433.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.1261, allocations: 1.824 MB / 435 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1261, allocations: 3.938 kB / 435 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.1273, allocations: 365.6 kB / 435.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.219e-05/0.1273, allocations: 101 kB / 435.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.1274, allocations: 8 kB / 435.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.1276, allocations: 35.95 kB / 435.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.387e-05/0.1277, allocations: 19.92 kB / 435.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.1277, allocations: 3.984 kB / 435.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002178/0.1279, allocations: 202 kB / 435.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1279, allocations: 0 / 435.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.1283, allocations: 79.84 kB / 435.8 MB, free: 10.47 MB / 366.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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001464/0.1298, allocations: 0.9038 MB / 436.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.1308, allocations: 433.2 kB / 437.1 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1308, allocations: 0 / 437.1 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005064/0.1313, allocations: 230.5 kB / 437.3 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.1317, allocations: 55.25 kB / 437.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005519/0.1372, allocations: 3.12 MB / 440.5 MB, free: 5.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.1376, allocations: 0.7557 MB / 441.2 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000118/0.1377, allocations: 30.28 kB / 441.3 MB, free: 4.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.1378, allocations: 83.41 kB / 441.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1378, allocations: 0 / 441.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2194/0.3572, allocations: 6.934 MB / 448.3 MB, free: 30.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.91, allocations: 3.594 kB / 448.3 MB, free: 30.91 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.241047972987872] Failed to read output from testmodel.py, exit status != 0: ['time', 'gain.opAmp.out.v', 'gain.opAmp.out.i'] 12.0572952030343 12.070508553 11.962955417 Calling exit ...