Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.001291/0.001291, 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.001374/0.001374, allocations: 191.7 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.351/1.351, allocations: 225.6 MB / 253.3 MB, free: 13.04 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.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 47.92 kB / 371.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2692, allocations: 52.17 MB / 423.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007205/0.2764, allocations: 6.108 MB / 429.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003012/0.2794, allocations: 1.529 MB / 431.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003723/0.2798, allocations: 19.88 kB / 431.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003684/0.2802, allocations: 170.3 kB / 431.2 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005159/0.2807, allocations: 297.2 kB / 431.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007574/0.2815, allocations: 415.4 kB / 431.9 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.2828, allocations: 1.387 MB / 433.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004836/0.2833, allocations: 301.7 kB / 433.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005959/0.2839, allocations: 0.5062 MB / 434.1 MB, free: 4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006776/0.2846, allocations: 0.5681 MB / 434.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001619/0.2848, allocations: 132 kB / 434.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002564/0.285, allocations: 168 kB / 435 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002305/0.2852, allocations: 275.1 kB / 435.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005181/0.2858, allocations: 0.5833 MB / 435.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00162/0.2874, allocations: 1.542 MB / 437.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2874, allocations: 4 kB / 437.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2874, allocations: 0 / 437.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.2874, allocations: 3.984 kB / 437.4 MB, free: 0.7266 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002625/0.29, allocations: 1.334 MB / 438.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.2901, allocations: 8.031 kB / 438.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.53e-05/0.2901, allocations: 26.19 kB / 438.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001671/0.2903, allocations: 139.6 kB / 438.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001921/0.2905, allocations: 116.2 kB / 439 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008329/0.2913, allocations: 0.4939 MB / 439.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.287e-05/0.2914, allocations: 66.38 kB / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001511/0.2915, allocations: 100.3 kB / 439.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.2931, allocations: 0.8545 MB / 440.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.2931, allocations: 0 / 440.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.505e-05/0.2932, allocations: 43.94 kB / 440.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.2932, allocations: 20 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.2948, allocations: 0.8472 MB / 441.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005691/0.3005, allocations: 3.154 MB / 444.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.3017, allocations: 0.6366 MB / 445.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007158/0.3024, allocations: 393.2 kB / 445.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.687e-05/0.3025, allocations: 24.62 kB / 445.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.3025, allocations: 43.16 kB / 445.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.275e-06/0.3025, allocations: 4 kB / 445.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004955/0.3075, allocations: 2.193 MB / 447.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.3075, allocations: 64 kB / 447.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000934/0.3085, allocations: 0.6096 MB / 448.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.228e-05/0.3085, allocations: 41.7 kB / 448.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004247/0.309, allocations: 452.3 kB / 449 MB, free: 4.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002819/0.3093, allocations: 265.7 kB / 449.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002981/0.3096, allocations: 150.6 kB / 449.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002356/0.3098, allocations: 390.7 kB / 449.8 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009419/0.3107, allocations: 321.9 kB / 450.1 MB, free: 3.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008748/0.3116, allocations: 468.6 kB / 450.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.3131, allocations: 0.8125 MB / 451.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3131, allocations: 4 kB / 451.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00233/0.3154, allocations: 1.111 MB / 452.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3155, allocations: 8 kB / 452.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3155, allocations: 8.062 kB / 452.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000579/0.3161, allocations: 184 kB / 452.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008756/0.3169, allocations: 203.7 kB / 452.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/0.3211, allocations: 2.783 MB / 455.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007337/0.3218, allocations: 28.05 kB / 455.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.3219, allocations: 35.98 kB / 455.8 MB, free: 13.86 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004632/0.3224, allocations: 237.6 kB / 456 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.3226, allocations: 83.48 kB / 456.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002237/0.3228, allocations: 91.27 kB / 456.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.3229, allocations: 8 kB / 456.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.3229, allocations: 0 / 456.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.3229, allocations: 7.984 kB / 456.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/0.3242, allocations: 0.8642 MB / 457 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.3242, allocations: 3.938 kB / 457 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000746/0.3249, allocations: 155.8 kB / 457.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005564/0.3255, allocations: 183.3 kB / 457.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.712e-05/0.3255, allocations: 19.98 kB / 457.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004045/0.3296, allocations: 2.787 MB / 460.2 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3296, allocations: 0 / 460.2 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002892/0.3325, allocations: 1.428 MB / 461.6 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.3327, allocations: 75.47 kB / 461.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.3328, allocations: 19.98 kB / 461.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006523/0.3335, allocations: 47.97 kB / 461.7 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.3336, allocations: 56.62 kB / 461.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.755e-05/0.3337, allocations: 31.92 kB / 461.8 MB, free: 7.586 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005809/0.3343, allocations: 427.1 kB / 462.2 MB, free: 7.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3343, allocations: 0 / 462.2 MB, free: 7.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008862/0.3351, allocations: 236 kB / 462.5 MB, free: 6.945 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003174/0.3383, allocations: 1.996 MB / 464.5 MB, free: 4.918 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00235/0.3407, allocations: 1.001 MB / 465.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3407, allocations: 0 / 465.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.3421, allocations: 0.616 MB / 466.1 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008759/0.3429, allocations: 150.4 kB / 466.2 MB, free: 3.125 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01288/0.3558, allocations: 7.456 MB / 473.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/0.3565, allocations: 0.9775 MB / 474.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003958/0.3569, allocations: 93.45 kB / 474.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/0.3574, allocations: 319.3 kB / 475.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3574, allocations: 4 kB / 475.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05289/0.4103, allocations: 19.77 MB / 494.8 MB, free: 6.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.71, allocations: 15.8 kB / 494.9 MB, free: 6.52 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.00019984 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.089245822047815] Failed to read output from testmodel.py, exit status != 0: ['time', 'C1.v', 'C2.v', 'C3.v', 'C4.v', 'C5.v', 'Transistor1.Tr.C.v', 'Transistor1.ct.v', 'Transistor2.Tr.C.v', 'Transistor2.ct.v'] 12.884698550973553 12.910018535 12.61772822 Calling exit ...