Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.001714/0.001714, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002038/0.002038, allocations: 204.5 kB / 23.73 MB, free: 4.379 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.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 51.92 kB / 377.8 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2444, allocations: 53.37 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.00414/0.2486, allocations: 2.608 MB / 433.7 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.2499, allocations: 0.6778 MB / 434.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.2501, allocations: 11.88 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.2502, allocations: 39.58 kB / 434.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001952/0.2504, allocations: 95.25 kB / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.2507, allocations: 99.81 kB / 434.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004143/0.2511, allocations: 354.5 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.2513, allocations: 72.69 kB / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.2514, allocations: 131.5 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.2517, allocations: 155.3 kB / 435.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.958e-05/0.2517, allocations: 28 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.48e-05/0.2518, allocations: 28 kB / 435.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.168e-05/0.2518, allocations: 63.77 kB / 435.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.252, allocations: 127.4 kB / 435.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004043/0.2524, allocations: 320.6 kB / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2524, allocations: 0 / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2524, allocations: 0 / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.2524, allocations: 4 kB / 435.9 MB, free: 1.816 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00134/0.2537, allocations: 0.5741 MB / 436.5 MB, free: 1.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.2538, allocations: 12.03 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.261e-05/0.2539, allocations: 58.73 kB / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.065e-05/0.2539, allocations: 32.75 kB / 436.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004192/0.2543, allocations: 229.8 kB / 436.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.2544, allocations: 16.81 kB / 436.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.961e-05/0.2544, allocations: 20.38 kB / 436.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006986/0.2551, allocations: 333.3 kB / 437.2 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2551, allocations: 0 / 437.2 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.2551, allocations: 4 kB / 437.2 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.619e-06/0.2552, allocations: 8 kB / 437.2 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007605/0.2559, allocations: 249.5 kB / 437.4 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.2575, allocations: 0.8473 MB / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008312/0.2584, allocations: 230.6 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003294/0.2587, allocations: 96.72 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.2587, allocations: 4 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005629/0.2593, allocations: 229.2 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/0.2593, allocations: 0 / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002297/0.2616, allocations: 0.5829 MB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.671e-05/0.2617, allocations: 102.8 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003438/0.262, allocations: 277.8 kB / 439.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.2621, allocations: 25.7 kB / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.2622, allocations: 188 kB / 440 MB, free: 13.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/0.2623, allocations: 47.64 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.491e-05/0.2624, allocations: 41.7 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.2626, allocations: 338.8 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000366/0.2629, allocations: 129.6 kB / 440.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004508/0.2634, allocations: 263.2 kB / 440.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.2641, allocations: 286.1 kB / 441.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2641, allocations: 0 / 441.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001256/0.2653, allocations: 479.8 kB / 441.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.139e-05/0.2654, allocations: 41.69 kB / 441.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2654, allocations: 224 / 441.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004075/0.2658, allocations: 80.8 kB / 441.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.266, allocations: 51.91 kB / 441.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003049/0.2691, allocations: 1.886 MB / 443.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.2694, allocations: 51.75 kB / 443.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.2694, allocations: 20.05 kB / 443.7 MB, free: 9.551 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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.0001855/0.2696, allocations: 137.8 kB / 443.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/0.2697, allocations: 23.8 kB / 443.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.492e-05/0.2697, allocations: 29.77 kB / 443.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2697, allocations: 0 / 443.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.2697, allocations: 0 / 443.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2697, allocations: 0 / 443.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002567/0.27, allocations: 236.6 kB / 444.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.27, allocations: 0 / 444.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.2701, allocations: 27.98 kB / 444.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002738/0.2704, allocations: 76.86 kB / 444.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/0.2704, allocations: 11.98 kB / 444.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00256/0.273, allocations: 1.797 MB / 446 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.273, allocations: 0 / 446 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.274, allocations: 357.6 kB / 446.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.586e-05/0.2741, allocations: 35.78 kB / 446.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.2741, allocations: 4 kB / 446.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.2744, allocations: 27.97 kB / 446.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.616e-05/0.2745, allocations: 31.92 kB / 446.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.2745, allocations: 0 / 446.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002081/0.2747, allocations: 193.2 kB / 446.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2747, allocations: 0 / 446.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004113/0.2751, allocations: 71.95 kB / 446.7 MB, free: 6.324 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 (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.00142/0.2765, allocations: 0.8902 MB / 447.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.2779, allocations: 0.4917 MB / 448.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.2779, allocations: 7.938 kB / 448.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005015/0.2784, allocations: 230 kB / 448.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.2787, allocations: 52.53 kB / 448.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007605/0.2863, allocations: 3.557 MB / 451.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.2865, allocations: 134.2 kB / 452 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000128/0.2866, allocations: 22.3 kB / 452.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.2867, allocations: 75.41 kB / 452.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2867, allocations: 3.938 kB / 452.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03788/0.3246, allocations: 7.163 MB / 459.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.81, allocations: 4.062 kB / 459.3 MB, free: 9.629 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.11902472798829] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 12.926127696991898 12.952389507 12.694814513 Calling exit ...