Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.001235/0.001235, allocations: 103.9 kB / 21.96 MB, free: 5.219 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.001303/0.001303, allocations: 214 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 207.7 MB / 236.1 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 55.91 kB / 348 MB, free: 9.816 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2649, allocations: 49.15 MB / 397.2 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005374/0.2702, allocations: 5.018 MB / 402.2 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.273, allocations: 1.408 MB / 403.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005634/0.2736, allocations: 18.81 kB / 403.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00035/0.2739, allocations: 158.2 kB / 403.8 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005186/0.2745, allocations: 283.4 kB / 404.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000719/0.2752, allocations: 354.9 kB / 404.4 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009663/0.2761, allocations: 1.238 MB / 405.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003792/0.2765, allocations: 301.3 kB / 405.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005218/0.277, allocations: 472.9 kB / 406.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005683/0.2776, allocations: 0.5222 MB / 406.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001798/0.2778, allocations: 123.5 kB / 407.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.2781, allocations: 159.8 kB / 407.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.2783, allocations: 253.2 kB / 407.5 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004035/0.2787, allocations: 460.6 kB / 407.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001559/0.2803, allocations: 1.425 MB / 409.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2803, allocations: 1.375 kB / 409.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2803, allocations: 0 / 409.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.341e-05/0.2803, allocations: 4 kB / 409.3 MB, free: 1.645 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002417/0.2827, allocations: 1.253 MB / 410.6 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.2828, allocations: 13.83 kB / 410.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.469e-05/0.2828, allocations: 22.44 kB / 410.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.2829, allocations: 129.2 kB / 410.8 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.2831, allocations: 110.2 kB / 410.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006621/0.2837, allocations: 456.4 kB / 411.3 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.2838, allocations: 67.02 kB / 411.4 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.2839, allocations: 84.58 kB / 411.5 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.2857, allocations: 1.078 MB / 412.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.2857, allocations: 3.938 kB / 412.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-05/0.2858, allocations: 36.91 kB / 412.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.468e-05/0.2858, allocations: 18.5 kB / 412.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.2874, allocations: 0.7853 MB / 413.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004931/0.2923, allocations: 2.707 MB / 416.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.2936, allocations: 0.6057 MB / 416.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006979/0.2943, allocations: 369.6 kB / 417 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.733e-05/0.2943, allocations: 12.92 kB / 417.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.759e-05/0.2944, allocations: 39 kB / 417.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.795e-06/0.2944, allocations: 1.875 kB / 417.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.004639/0.299, allocations: 2.133 MB / 419.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.2991, allocations: 59.44 kB / 419.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007768/0.2998, allocations: 0.5059 MB / 419.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.951e-05/0.2999, allocations: 37.61 kB / 419.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003944/0.3003, allocations: 401.7 kB / 420.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002781/0.3006, allocations: 274.4 kB / 420.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002736/0.3009, allocations: 132.3 kB / 420.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002435/0.3011, allocations: 373.9 kB / 421 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007153/0.3018, allocations: 308.3 kB / 421.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007833/0.3026, allocations: 426.5 kB / 421.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.3041, allocations: 0.7421 MB / 422.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3041, allocations: 0 / 422.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00233/0.3064, allocations: 1.035 MB / 423.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.3065, allocations: 5.844 kB / 423.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.3065, allocations: 6.875 kB / 423.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006294/0.3071, allocations: 189.3 kB / 423.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008834/0.308, allocations: 183.8 kB / 423.9 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/0.3122, allocations: 2.715 MB / 426.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008734/0.313, allocations: 32.03 kB / 426.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.429e-05/0.3131, allocations: 35.91 kB / 426.6 MB, free: 5.055 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005184/0.3136, allocations: 221.7 kB / 426.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/0.3138, allocations: 75.53 kB / 426.9 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001963/0.314, allocations: 94.05 kB / 427 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.314, allocations: 8 kB / 427 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.03e-05/0.3141, allocations: 4 kB / 427 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.3141, allocations: 7.984 kB / 427 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.3152, allocations: 0.6772 MB / 427.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.3152, allocations: 0 / 427.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007387/0.3159, allocations: 143.8 kB / 427.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005767/0.3165, allocations: 180.6 kB / 428 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.073e-05/0.3166, allocations: 27.92 kB / 428.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/0.3204, allocations: 2.72 MB / 430.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3204, allocations: 0 / 430.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.3231, allocations: 1.377 MB / 432.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.3233, allocations: 67.52 kB / 432.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.3234, allocations: 12.09 kB / 432.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005588/0.3239, allocations: 67.83 kB / 432.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.324, allocations: 52.55 kB / 432.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.546e-05/0.3241, allocations: 23.98 kB / 432.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000447/0.3245, allocations: 350.9 kB / 432.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3245, allocations: 0 / 432.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008236/0.3254, allocations: 232.1 kB / 432.9 MB, free: 14.55 MB / 350.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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003001/0.3284, allocations: 1.957 MB / 434.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002353/0.3307, allocations: 0.9589 MB / 435.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3307, allocations: 0 / 435.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00148/0.3322, allocations: 0.608 MB / 436.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008957/0.3331, allocations: 138.5 kB / 436.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.3449, allocations: 6.895 MB / 443.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.3453, allocations: 361.4 kB / 443.9 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000399/0.3457, allocations: 81.05 kB / 443.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004266/0.3462, allocations: 291.3 kB / 444.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3462, allocations: 0 / 444.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05604/0.4022, allocations: 18.9 MB / 463.1 MB, free: 52 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.71, allocations: 3.938 kB / 463.1 MB, free: 48 kB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.00019984 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.983402672922239] 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.881283318041824 12.896405259 12.612910687 Calling exit ...