Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.001548/0.001548, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001915/0.001915, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 8.047 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-beta.om/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.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 64.77 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2602, allocations: 53.38 MB / 432 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004496/0.2647, allocations: 2.974 MB / 434.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.2663, allocations: 0.7596 MB / 435.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.2664, allocations: 11.94 kB / 435.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.2666, allocations: 51.5 kB / 435.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.2668, allocations: 107.2 kB / 435.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.2671, allocations: 115.8 kB / 436 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004884/0.2676, allocations: 418.4 kB / 436.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.2678, allocations: 95.66 kB / 436.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001997/0.268, allocations: 159.4 kB / 436.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.2683, allocations: 175.2 kB / 436.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.045e-05/0.2683, allocations: 40 kB / 436.8 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.092e-05/0.2684, allocations: 40 kB / 436.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.769e-05/0.2685, allocations: 83.64 kB / 437 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.2687, allocations: 179.2 kB / 437.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005348/0.2692, allocations: 451.1 kB / 437.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2692, allocations: 0 / 437.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2692, allocations: 0 / 437.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.2692, allocations: 4 kB / 437.6 MB, free: 1.219 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0013/0.2705, allocations: 0.6091 MB / 438.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.2706, allocations: 12.03 kB / 438.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.939e-05/0.2706, allocations: 62.73 kB / 438.3 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.127e-05/0.2707, allocations: 36.7 kB / 438.3 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.2712, allocations: 257.8 kB / 438.5 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.2712, allocations: 16.88 kB / 438.6 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.048e-05/0.2712, allocations: 24.38 kB / 438.6 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007354/0.272, allocations: 326.9 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.272, allocations: 3.984 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.272, allocations: 12 kB / 438.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.272, allocations: 4 kB / 438.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008074/0.2728, allocations: 289.7 kB / 439.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.2748, allocations: 1.108 MB / 440.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008125/0.2756, allocations: 242.6 kB / 440.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/0.2759, allocations: 96.78 kB / 440.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.2759, allocations: 4 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004776/0.2764, allocations: 181.8 kB / 440.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.2764, allocations: 0 / 440.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002305/0.2787, allocations: 0.5871 MB / 441.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.856e-05/0.2788, allocations: 114.8 kB / 441.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.2792, allocations: 281.8 kB / 441.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.2792, allocations: 29.92 kB / 441.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.2794, allocations: 196 kB / 442 MB, free: 12.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.518e-05/0.2794, allocations: 55.56 kB / 442.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.662e-05/0.2795, allocations: 45.94 kB / 442.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.2797, allocations: 342.8 kB / 442.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003369/0.28, allocations: 100.4 kB / 442.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/0.2804, allocations: 208.8 kB / 442.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006794/0.2811, allocations: 307.8 kB / 443.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2811, allocations: 0 / 443.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001228/0.2823, allocations: 475.7 kB / 443.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.268e-05/0.2824, allocations: 32.2 kB / 443.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.2824, allocations: 12.05 kB / 443.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003705/0.2828, allocations: 76.81 kB / 443.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.283, allocations: 51.89 kB / 443.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002771/0.2858, allocations: 1.898 MB / 445.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.2861, allocations: 51.75 kB / 445.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.2862, allocations: 15.98 kB / 445.7 MB, free: 8.652 MB / 350.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.0001809/0.2863, allocations: 161.8 kB / 445.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/0.2864, allocations: 23.86 kB / 445.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.2864, allocations: 25.77 kB / 445.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2864, allocations: 4 kB / 445.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.2864, allocations: 0 / 445.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2864, allocations: 0 / 445.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003435/0.2868, allocations: 296.4 kB / 446.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2868, allocations: 0 / 446.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.2869, allocations: 27.97 kB / 446.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002676/0.2872, allocations: 80.8 kB / 446.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.2872, allocations: 0 / 446.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002505/0.2897, allocations: 1.717 MB / 448 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2897, allocations: 4.031 kB / 448 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.2908, allocations: 361.6 kB / 448.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.691e-05/0.2908, allocations: 31.8 kB / 448.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.2909, allocations: 4 kB / 448.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.2911, allocations: 35.95 kB / 448.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.464e-05/0.2912, allocations: 23.91 kB / 448.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.2912, allocations: 3.938 kB / 448.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002545/0.2915, allocations: 205.2 kB / 448.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2915, allocations: 0 / 448.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000408/0.2919, allocations: 83.83 kB / 448.7 MB, free: 5.395 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.001538/0.2934, allocations: 0.898 MB / 449.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.2945, allocations: 426 kB / 450 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2945, allocations: 0 / 450 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004854/0.295, allocations: 230.5 kB / 450.3 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.2953, allocations: 56.47 kB / 450.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005952/0.3013, allocations: 3.109 MB / 453.4 MB, free: 484 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.3017, allocations: 0.7522 MB / 454.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000129/0.3018, allocations: 26.28 kB / 454.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.302, allocations: 83.41 kB / 454.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.302, allocations: 0 / 454.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03989/0.3419, allocations: 7.065 MB / 461.3 MB, free: 8.676 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.13, allocations: 16.64 kB / 461.4 MB, free: 8.668 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.465465751010925] Failed to read output from testmodel.py, exit status != 0: ['time', 'gain.opAmp.out.v', 'gain.opAmp.out.i'] 12.226087728049606 12.251842283 11.978368496 Calling exit ...