Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001246/0.001246, allocations: 101.2 kB / 21.22 MB, free: 0.6289 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.001341/0.001341, allocations: 210.8 kB / 24.51 MB, free: 3.918 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.36/1.36, allocations: 230.6 MB / 258.3 MB, free: 7.727 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.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 51.92 kB / 378.5 MB, free: 2.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.246, allocations: 53.35 MB / 431.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007071/0.2531, allocations: 5.345 MB / 437.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.2559, allocations: 1.513 MB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003397/0.2562, allocations: 19.94 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003801/0.2566, allocations: 178.2 kB / 438.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005364/0.2571, allocations: 293.3 kB / 439.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007636/0.2579, allocations: 419.3 kB / 439.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.2592, allocations: 1.391 MB / 441 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004484/0.2597, allocations: 301.7 kB / 441.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006796/0.2604, allocations: 0.5062 MB / 441.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006699/0.261, allocations: 0.568 MB / 442.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.2612, allocations: 132 kB / 442.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003091/0.2615, allocations: 184 kB / 442.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002255/0.2617, allocations: 279.1 kB / 443 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004739/0.2622, allocations: 493.9 kB / 443.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001504/0.2637, allocations: 1.557 MB / 445 MB, free: 9.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2637, allocations: 0 / 445 MB, free: 9.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2637, allocations: 0 / 445 MB, free: 9.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.2637, allocations: 4 kB / 445 MB, free: 9.414 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002584/0.2663, allocations: 1.338 MB / 446.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.2664, allocations: 8.031 kB / 446.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.65e-05/0.2664, allocations: 30.19 kB / 446.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/0.2666, allocations: 135.6 kB / 446.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003432/0.2669, allocations: 132.2 kB / 446.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007868/0.2677, allocations: 0.4939 MB / 447.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.65e-05/0.2677, allocations: 66.38 kB / 447.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001509/0.2679, allocations: 92.38 kB / 447.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.2696, allocations: 1.106 MB / 448.4 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.2697, allocations: 3.938 kB / 448.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.972e-05/0.2698, allocations: 40 kB / 448.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.2698, allocations: 23.94 kB / 448.5 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.2714, allocations: 0.8511 MB / 449.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005321/0.2767, allocations: 2.881 MB / 452.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.2779, allocations: 0.6262 MB / 452.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006972/0.2786, allocations: 391.2 kB / 453.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.55e-05/0.2786, allocations: 12.64 kB / 453.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/0.2787, allocations: 47.16 kB / 453.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.946e-06/0.2787, allocations: 0 / 453.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004526/0.2832, allocations: 2.202 MB / 455.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.2833, allocations: 64 kB / 455.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000702/0.284, allocations: 0.6058 MB / 456.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.731e-05/0.284, allocations: 41.7 kB / 456.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.2843, allocations: 448.3 kB / 456.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.2846, allocations: 273.6 kB / 456.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002594/0.2848, allocations: 150.6 kB / 457 MB, free: 13.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.285, allocations: 386.7 kB / 457.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006449/0.2856, allocations: 325.9 kB / 457.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007437/0.2864, allocations: 472.6 kB / 458.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.2878, allocations: 0.8086 MB / 459 MB, free: 10.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2878, allocations: 0 / 459 MB, free: 10.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002127/0.2899, allocations: 1.107 MB / 460.1 MB, free: 9.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.2899, allocations: 11.98 kB / 460.1 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.2899, allocations: 4 kB / 460.1 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005564/0.2905, allocations: 184.8 kB / 460.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008735/0.2914, allocations: 199.7 kB / 460.5 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.2951, allocations: 2.748 MB / 463.2 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006149/0.2957, allocations: 32.03 kB / 463.3 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.946e-05/0.2958, allocations: 35.98 kB / 463.3 MB, free: 6.527 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.0003778/0.2962, allocations: 229.7 kB / 463.5 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.2963, allocations: 87.42 kB / 463.6 MB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001917/0.2965, allocations: 99.25 kB / 463.7 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2965, allocations: 8 kB / 463.7 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.2965, allocations: 4 kB / 463.7 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2965, allocations: 7.922 kB / 463.7 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009674/0.2975, allocations: 0.7122 MB / 464.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2975, allocations: 0 / 464.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007421/0.2983, allocations: 151.9 kB / 464.6 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005102/0.2988, allocations: 179.5 kB / 464.8 MB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.2988, allocations: 15.98 kB / 464.8 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003644/0.3025, allocations: 2.755 MB / 467.5 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3025, allocations: 3.938 kB / 467.5 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.305, allocations: 1.432 MB / 469 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.3052, allocations: 75.47 kB / 469.1 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.3053, allocations: 19.98 kB / 469.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005865/0.3059, allocations: 43.97 kB / 469.1 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.306, allocations: 64.53 kB / 469.2 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.865e-05/0.3061, allocations: 28.08 kB / 469.2 MB, free: 452 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005119/0.3066, allocations: 427 kB / 469.6 MB, free: 32 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3066, allocations: 0 / 469.6 MB, free: 32 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008079/0.3074, allocations: 240 kB / 469.9 MB, free: 15.79 MB / 382.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.002999/0.3104, allocations: 2.007 MB / 471.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.3125, allocations: 0.994 MB / 472.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3125, allocations: 0 / 472.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.3138, allocations: 0.6119 MB / 473.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007335/0.3146, allocations: 156.3 kB / 473.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.326, allocations: 7.461 MB / 481.1 MB, free: 4.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.3264, allocations: 387.2 kB / 481.5 MB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003779/0.3268, allocations: 93.45 kB / 481.6 MB, free: 3.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004431/0.3272, allocations: 323.3 kB / 481.9 MB, free: 3.473 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3272, allocations: 0 / 481.9 MB, free: 3.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05016/0.3774, allocations: 20.45 MB / 0.4905 GB, free: 15.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/12.97, allocations: 6.828 kB / 0.4905 GB, free: 15.41 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1e-08 --stepSize=1.9988e-12 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.25221160298679] 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'] 13.136599850957282 13.151515341 12.884639419 Calling exit ...