Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001264/0.001264, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001282/0.001282, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.358/1.358, allocations: 225.7 MB / 253.3 MB, free: 13.03 MB / 206.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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 47.92 kB / 371.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2672, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004271/0.2715, allocations: 2.826 MB / 426.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2728, allocations: 0.6427 MB / 426.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.273, allocations: 4 kB / 426.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001661/0.2731, allocations: 51.52 kB / 427 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.2733, allocations: 99.17 kB / 427 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.2736, allocations: 83.89 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000465/0.2741, allocations: 378.5 kB / 427.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.2743, allocations: 87.36 kB / 427.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.2745, allocations: 155.4 kB / 427.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.2747, allocations: 163.4 kB / 427.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.729e-05/0.2748, allocations: 32 kB / 427.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.49e-05/0.2748, allocations: 36 kB / 428 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-05/0.2749, allocations: 75.69 kB / 428 MB, free: 9.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.2751, allocations: 163.2 kB / 428.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004409/0.2755, allocations: 383.3 kB / 428.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2755, allocations: 0 / 428.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2755, allocations: 0 / 428.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.2755, allocations: 0 / 428.6 MB, free: 9.434 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001239/0.2768, allocations: 0.5858 MB / 429.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2768, allocations: 12.03 kB / 429.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.625e-05/0.2768, allocations: 8.688 kB / 429.2 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.048e-05/0.2769, allocations: 62.72 kB / 429.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.76e-05/0.277, allocations: 32.75 kB / 429.3 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.2773, allocations: 219 kB / 429.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.2774, allocations: 20.88 kB / 429.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.568e-05/0.2774, allocations: 28.31 kB / 429.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007092/0.2781, allocations: 302.5 kB / 429.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.2781, allocations: 4 kB / 429.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.2782, allocations: 8 kB / 429.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.2782, allocations: 8 kB / 429.8 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008612/0.279, allocations: 253.4 kB / 430.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2808, allocations: 1.043 MB / 431.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007815/0.2816, allocations: 210.5 kB / 431.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003073/0.2819, allocations: 84.78 kB / 431.4 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.2819, allocations: 4 kB / 431.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004554/0.2823, allocations: 169.5 kB / 431.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.2824, allocations: 0 / 431.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002051/0.2844, allocations: 441.8 kB / 432 MB, free: 5.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/0.2845, allocations: 110.8 kB / 432.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.2848, allocations: 281.8 kB / 432.4 MB, free: 5.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.2849, allocations: 29.7 kB / 432.4 MB, free: 5.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.285, allocations: 208 kB / 432.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.998e-05/0.2851, allocations: 43.7 kB / 432.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.2852, allocations: 53.89 kB / 432.7 MB, free: 4.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2853, allocations: 334.8 kB / 433.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003377/0.2857, allocations: 92.16 kB / 433.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/0.2861, allocations: 210 kB / 433.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006999/0.2868, allocations: 304.7 kB / 433.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.2868, allocations: 4 kB / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001207/0.288, allocations: 415.8 kB / 434.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.017e-05/0.288, allocations: 41.62 kB / 434.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.2881, allocations: 8.094 kB / 434.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003654/0.2884, allocations: 68.81 kB / 434.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.2886, allocations: 47.89 kB / 434.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002507/0.2911, allocations: 1.6 MB / 435.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.2915, allocations: 51.8 kB / 435.9 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.2915, allocations: 16 kB / 435.9 MB, free: 1.594 MB / 334.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.0001859/0.2917, allocations: 157.7 kB / 436 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.836e-05/0.2917, allocations: 23.86 kB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.82e-05/0.2918, allocations: 21.7 kB / 436.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.2918, allocations: 4.188 kB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.2918, allocations: 7.938 kB / 436.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2918, allocations: 0 / 436.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003209/0.2921, allocations: 284.4 kB / 436.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2921, allocations: 0 / 436.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.2922, allocations: 19.98 kB / 436.4 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002604/0.2925, allocations: 68.73 kB / 436.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.2925, allocations: 4 kB / 436.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.2949, allocations: 1.601 MB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2949, allocations: 0 / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.2959, allocations: 314 kB / 438.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.296, allocations: 35.83 kB / 438.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.2961, allocations: 4.188 kB / 438.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.2963, allocations: 31.97 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.272e-05/0.2964, allocations: 35.83 kB / 438.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.2964, allocations: 4 kB / 438.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.2966, allocations: 197.2 kB / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2966, allocations: 0 / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.297, allocations: 79.89 kB / 438.8 MB, free: 14.54 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.001439/0.2984, allocations: 0.8511 MB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.2995, allocations: 417.2 kB / 440 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.2995, allocations: 0 / 440 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005192/0.3001, allocations: 219.2 kB / 440.2 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.3004, allocations: 40.94 kB / 440.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005586/0.306, allocations: 3.002 MB / 443.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.3064, allocations: 0.7518 MB / 444 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.3065, allocations: 26.28 kB / 444.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.3066, allocations: 71.42 kB / 444.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3066, allocations: 4 kB / 444.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.3384, allocations: 7.06 MB / 451.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.47, allocations: 7.438 kB / 451.2 MB, free: 2.016 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.749889919999987] Failed to read output from testmodel.py, exit status != 0: ['time', 'vIn.signalSource.y'] 12.640442208969034 12.654796184 12.376179567 Calling exit ...