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.002044/0.002044, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002488/0.002488, allocations: 209.4 kB / 24.47 MB, free: 3.547 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.482/1.482, allocations: 207.7 MB / 235.3 MB, free: 9.797 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",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.001792/0.001792, allocations: 55.92 kB / 347.3 MB, free: 9.824 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2526, allocations: 49.15 MB / 396.4 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00543/0.258, allocations: 5.029 MB / 401.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002991/0.261, allocations: 1.409 MB / 402.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004528/0.2614, allocations: 19.25 kB / 402.9 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003665/0.2618, allocations: 158.1 kB / 403 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005526/0.2624, allocations: 279.5 kB / 403.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007822/0.2631, allocations: 355.9 kB / 403.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001176/0.2643, allocations: 1.242 MB / 404.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004494/0.2648, allocations: 280.8 kB / 405.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006302/0.2654, allocations: 471.1 kB / 405.6 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005676/0.266, allocations: 468.4 kB / 406.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.2661, allocations: 128.9 kB / 406.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002746/0.2664, allocations: 154.1 kB / 406.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.2666, allocations: 252.6 kB / 406.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003609/0.2669, allocations: 461 kB / 407 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.2683, allocations: 1.417 MB / 408.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2683, allocations: 0.6094 kB / 408.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2683, allocations: 6 kB / 408.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.2683, allocations: 3.938 kB / 408.5 MB, free: 1.719 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.002229/0.2705, allocations: 1.247 MB / 409.7 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2706, allocations: 13.11 kB / 409.7 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.2707, allocations: 130.5 kB / 409.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.2708, allocations: 108.1 kB / 410 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006487/0.2715, allocations: 465.7 kB / 410.4 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.2715, allocations: 62.75 kB / 410.5 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.2716, allocations: 85.98 kB / 410.6 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.2732, allocations: 1.077 MB / 411.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.2733, allocations: 1.094 kB / 411.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.46e-05/0.2733, allocations: 36.03 kB / 411.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.2734, allocations: 19.66 kB / 411.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.2749, allocations: 0.7825 MB / 412.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004913/0.2798, allocations: 2.704 MB / 415.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.281, allocations: 0.6065 MB / 415.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007018/0.2817, allocations: 375.9 kB / 416.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.2817, allocations: 8.531 kB / 416.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.2818, allocations: 39.75 kB / 416.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 3.056e-06/0.2818, allocations: 1.156 kB / 416.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.004644/0.2864, allocations: 2.138 MB / 418.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.2865, allocations: 58.56 kB / 418.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006555/0.2871, allocations: 0.5113 MB / 418.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.728e-05/0.2872, allocations: 37.83 kB / 419 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.2875, allocations: 404.7 kB / 419.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.2877, allocations: 262.8 kB / 419.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.288, allocations: 140.1 kB / 419.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000217/0.2882, allocations: 379 kB / 420.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006451/0.2888, allocations: 300.2 kB / 420.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007136/0.2895, allocations: 430.8 kB / 420.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.2909, allocations: 0.7407 MB / 421.6 MB, free: 8.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.2909, allocations: 1.75 kB / 421.6 MB, free: 8.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002177/0.2931, allocations: 1.033 MB / 422.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.2931, allocations: 6.875 kB / 422.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.2931, allocations: 6.188 kB / 422.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005746/0.2937, allocations: 187.3 kB / 422.8 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008304/0.2945, allocations: 185.3 kB / 423 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003988/0.2985, allocations: 2.715 MB / 425.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006651/0.2992, allocations: 36.03 kB / 425.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-05/0.2992, allocations: 27.94 kB / 425.8 MB, free: 5.184 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.0004034/0.2996, allocations: 229.7 kB / 426 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.2998, allocations: 75.53 kB / 426.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001898/0.3, allocations: 86.17 kB / 426.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.3, allocations: 15.92 kB / 426.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.103e-05/0.3, allocations: 4 kB / 426.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.3, allocations: 8.109 kB / 426.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.3011, allocations: 0.677 MB / 426.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3011, allocations: 0 / 426.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006957/0.3018, allocations: 143.8 kB / 427 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000543/0.3023, allocations: 172.7 kB / 427.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.637e-05/0.3024, allocations: 23.97 kB / 427.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004059/0.3064, allocations: 2.719 MB / 429.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3064, allocations: 0 / 429.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.309, allocations: 1.385 MB / 431.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.3092, allocations: 67.52 kB / 431.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.892e-05/0.3093, allocations: 12 kB / 431.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005593/0.3099, allocations: 59.95 kB / 431.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.31, allocations: 60.52 kB / 431.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.166e-05/0.31, allocations: 23.98 kB / 431.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000424/0.3105, allocations: 350.9 kB / 431.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3105, allocations: 0 / 431.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008575/0.3113, allocations: 224.1 kB / 432.1 MB, free: 14.69 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.003138/0.3145, allocations: 1.957 MB / 434 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.3168, allocations: 0.9511 MB / 435 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.3168, allocations: 4 kB / 435 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001323/0.3181, allocations: 0.6119 MB / 435.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007367/0.3188, allocations: 134.7 kB / 435.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.3302, allocations: 6.891 MB / 442.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.3306, allocations: 365.3 kB / 443 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004083/0.331, allocations: 89.03 kB / 443 MB, free: 3.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004154/0.3315, allocations: 287.3 kB / 443.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3315, allocations: 0 / 443.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08554/0.417, allocations: 19.14 MB / 462.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.59, allocations: 15.84 kB / 462.5 MB, free: 15.93 MB / 382.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019984 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: 15.241045315749943] 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.713305382058024 12.739213993 12.466343766 Calling exit ...