Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.001283/0.001283, allocations: 121 kB / 18.49 MB, free: 4.586 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.001337/0.001337, allocations: 213.5 kB / 21.45 MB, free: 1.641 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.411/1.411, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 47.92 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, allocations: 53.34 MB / 427.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004301/0.1074, allocations: 2.96 MB / 430 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.1087, allocations: 0.7596 MB / 430.8 MB, free: 1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.1089, allocations: 11.94 kB / 430.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.109, allocations: 47.56 kB / 430.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.1092, allocations: 107.1 kB / 430.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.1095, allocations: 119.8 kB / 431.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.11, allocations: 410.5 kB / 431.5 MB, free: 324 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.1102, allocations: 95.25 kB / 431.5 MB, free: 220 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1103, allocations: 163.4 kB / 431.7 MB, free: 56 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1964/0.3067, allocations: 167.4 kB / 431.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.3068, allocations: 39.09 kB / 431.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.925e-05/0.3069, allocations: 40 kB / 432 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.607e-05/0.307, allocations: 82.41 kB / 432 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.3071, allocations: 175.3 kB / 432.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004172/0.3076, allocations: 454.4 kB / 432.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3076, allocations: 0.8125 kB / 432.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3076, allocations: 0 / 432.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.3076, allocations: 0.6875 kB / 432.6 MB, free: 7.797 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.00116/0.3087, allocations: 0.6821 MB / 433.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3088, allocations: 10.66 kB / 433.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.226e-05/0.3088, allocations: 6.75 kB / 433.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.024e-05/0.3088, allocations: 62.45 kB / 433.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.33e-05/0.3089, allocations: 37.2 kB / 433.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.3092, allocations: 304.1 kB / 433.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.3093, allocations: 18.25 kB / 433.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.3093, allocations: 26.5 kB / 433.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006357/0.3099, allocations: 330.9 kB / 434.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.3099, allocations: 3.531 kB / 434.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.31, allocations: 8.156 kB / 434.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.31, allocations: 8.844 kB / 434.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007361/0.3107, allocations: 287.5 kB / 434.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.3123, allocations: 1.144 MB / 435.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008153/0.3131, allocations: 241 kB / 435.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/0.3134, allocations: 107.4 kB / 435.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.3134, allocations: 4.344 kB / 435.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004351/0.3139, allocations: 176.4 kB / 436.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.482e-06/0.3139, allocations: 0.8438 kB / 436.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.00229/0.3162, allocations: 0.6597 MB / 436.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.3162, allocations: 112 kB / 436.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.3165, allocations: 286.4 kB / 437.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.3165, allocations: 28.41 kB / 437.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.95e-05/0.3166, allocations: 207.5 kB / 437.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.215e-05/0.3166, allocations: 45.81 kB / 437.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.468e-05/0.3167, allocations: 49.12 kB / 437.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.51e-05/0.3168, allocations: 330.8 kB / 437.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/0.3171, allocations: 106.7 kB / 437.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003761/0.3175, allocations: 204.4 kB / 438.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000668/0.3182, allocations: 310.5 kB / 438.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3182, allocations: 1.125 kB / 438.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001216/0.3194, allocations: 478.2 kB / 438.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.3194, allocations: 32.58 kB / 438.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3194, allocations: 3.891 kB / 438.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003663/0.3198, allocations: 90.16 kB / 439 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.32, allocations: 46.16 kB / 439 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/0.3223, allocations: 1.994 MB / 441 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.3226, allocations: 60.98 kB / 441.1 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.3226, allocations: 20.97 kB / 441.1 MB, free: 3.438 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.0001271/0.3228, allocations: 143 kB / 441.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.3228, allocations: 23.64 kB / 441.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.869e-05/0.3228, allocations: 26.81 kB / 441.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3228, allocations: 2.375 kB / 441.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.3228, allocations: 0 / 441.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3229, allocations: 6.234 kB / 441.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002825/0.3231, allocations: 330.5 kB / 441.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3231, allocations: 3.781 kB / 441.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.3233, allocations: 21.08 kB / 441.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002767/0.3236, allocations: 84.81 kB / 441.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.3236, allocations: 7.359 kB / 441.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001935/0.3255, allocations: 1.806 MB / 443.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3255, allocations: 0.625 kB / 443.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.3266, allocations: 373.9 kB / 443.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.429e-05/0.3266, allocations: 108.8 kB / 444 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.3267, allocations: 6.828 kB / 444 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/0.3269, allocations: 30.16 kB / 444 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.138e-05/0.327, allocations: 26.66 kB / 444.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.327, allocations: 12.48 kB / 444.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001829/0.3272, allocations: 198.1 kB / 444.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3272, allocations: 0 / 444.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004201/0.3276, allocations: 79.78 kB / 444.3 MB, free: 1.059 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.001312/0.3289, allocations: 0.9061 MB / 445.2 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009465/0.3299, allocations: 423.9 kB / 445.7 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3299, allocations: 0 / 445.7 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004374/0.3303, allocations: 234.3 kB / 445.9 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.3306, allocations: 50.53 kB / 445.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005716/0.3364, allocations: 3.103 MB / 449 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.3367, allocations: 0.7547 MB / 449.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.3368, allocations: 26.14 kB / 449.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.337, allocations: 82.88 kB / 449.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.337, allocations: 0 / 449.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03142/0.3684, allocations: 6.98 MB / 456.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.1, allocations: 11.23 kB / 456.9 MB, free: 11.44 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.43376729200827] Failed to read output from testmodel.py, exit status != 0: ['time', 'gain.opAmp.out.v', 'gain.opAmp.out.i'] 12.247898517991416 12.26095127 11.950585893 Calling exit ...