Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001547/0.001547, allocations: 208.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 230.5 MB / 258.2 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 55.91 kB / 378.6 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2847, allocations: 53.42 MB / 432 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004588/0.2893, allocations: 2.822 MB / 434.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.2911, allocations: 0.7089 MB / 435.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.2913, allocations: 7.938 kB / 435.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.2915, allocations: 35.58 kB / 435.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.2918, allocations: 103.2 kB / 435.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.2921, allocations: 87.83 kB / 435.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004817/0.2926, allocations: 350.6 kB / 436.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.2928, allocations: 60.86 kB / 436.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.293, allocations: 143.4 kB / 436.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.2932, allocations: 159.3 kB / 436.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.528e-05/0.2933, allocations: 32 kB / 436.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.929e-05/0.2934, allocations: 28 kB / 436.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.956e-05/0.2934, allocations: 67.7 kB / 436.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001951/0.2936, allocations: 143.3 kB / 436.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005863/0.2942, allocations: 343.3 kB / 437.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2942, allocations: 0 / 437.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2942, allocations: 0 / 437.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.416e-05/0.2943, allocations: 0 / 437.1 MB, free: 1.59 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001195/0.2954, allocations: 0.5585 MB / 437.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.2955, allocations: 12.03 kB / 437.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.808e-05/0.2955, allocations: 4.625 kB / 437.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.005e-05/0.2956, allocations: 54.73 kB / 437.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.529e-05/0.2956, allocations: 36.73 kB / 437.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.2961, allocations: 225.9 kB / 437.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.2961, allocations: 16.81 kB / 438 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.2961, allocations: 24.38 kB / 438 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005754/0.2967, allocations: 247.1 kB / 438.2 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.2967, allocations: 0 / 438.2 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.2968, allocations: 8 kB / 438.2 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.2968, allocations: 8 kB / 438.2 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006233/0.2974, allocations: 221.6 kB / 438.5 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.2991, allocations: 0.8657 MB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006468/0.2998, allocations: 202.6 kB / 439.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.3, allocations: 88.8 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.3001, allocations: 3.938 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/0.3005, allocations: 174.7 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.3005, allocations: 0 / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001687/0.3022, allocations: 437 kB / 440.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.3023, allocations: 132.5 kB / 440.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.3026, allocations: 273.8 kB / 440.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.3026, allocations: 33.64 kB / 440.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.3028, allocations: 184.3 kB / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.317e-05/0.3028, allocations: 55.53 kB / 440.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.3029, allocations: 49.94 kB / 440.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3031, allocations: 330.8 kB / 441.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.3034, allocations: 88.39 kB / 441.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003517/0.3037, allocations: 171.9 kB / 441.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.3043, allocations: 267.8 kB / 441.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3043, allocations: 4 kB / 441.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009761/0.3053, allocations: 383.8 kB / 442.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.564e-05/0.3054, allocations: 33.7 kB / 442.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3054, allocations: 4 kB / 442.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003953/0.3058, allocations: 72.78 kB / 442.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.306, allocations: 43.94 kB / 442.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002345/0.3083, allocations: 1.818 MB / 444.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.3086, allocations: 51.81 kB / 444.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.3087, allocations: 8 kB / 444.2 MB, free: 10.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * 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.0001656/0.3088, allocations: 148.5 kB / 444.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.3089, allocations: 23.86 kB / 444.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.857e-05/0.3089, allocations: 26.12 kB / 444.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3089, allocations: 7.984 kB / 444.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3089, allocations: 0 / 444.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.3089, allocations: 0 / 444.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003026/0.3092, allocations: 276.5 kB / 444.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3092, allocations: 3.938 kB / 444.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.3094, allocations: 23.97 kB / 444.7 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003047/0.3097, allocations: 72.78 kB / 444.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.3097, allocations: 8 kB / 444.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002181/0.3119, allocations: 1.806 MB / 446.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.3119, allocations: 3.938 kB / 446.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008496/0.3127, allocations: 301.6 kB / 446.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.797e-05/0.3128, allocations: 23.86 kB / 446.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/0.3128, allocations: 7.984 kB / 446.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.3131, allocations: 35.89 kB / 446.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.771e-05/0.3132, allocations: 27.89 kB / 446.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.3132, allocations: 8 kB / 447 MB, free: 7.039 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002246/0.3134, allocations: 193.2 kB / 447.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3134, allocations: 0 / 447.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004507/0.3139, allocations: 79.89 kB / 447.2 MB, free: 6.77 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: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,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 (11): * Single equations (assignments): 8 * 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.001265/0.3151, allocations: 0.8355 MB / 448.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.3162, allocations: 393.6 kB / 448.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.3162, allocations: 4 kB / 448.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004712/0.3166, allocations: 226.5 kB / 448.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.317, allocations: 62.39 kB / 448.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005796/0.3228, allocations: 2.96 MB / 451.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.3232, allocations: 0.748 MB / 452.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.3233, allocations: 26.28 kB / 452.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.3235, allocations: 79.41 kB / 452.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of SimCode: time 1.123e-06/0.3235, allocations: 4 kB / 452.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/0.3559, allocations: 6.902 MB / 459.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.02, allocations: 19.36 kB / 459.5 MB, free: 10.44 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.394954712013714] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 13.194794591981918 13.210261221 12.912788319 Calling exit ...