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.001757/0.001757, allocations: 111.6 kB / 18.45 MB, free: 4.59 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.002197/0.002197, allocations: 215.2 kB / 21.42 MB, free: 1.629 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.595/1.595, allocations: 207.6 MB / 231.8 MB, free: 4.191 MB / 174.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.001773/0.001773, allocations: 55.92 kB / 342.4 MB, free: 9.934 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09827, allocations: 49.11 MB / 391.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007492/0.1058, allocations: 5.737 MB / 397.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003567/0.1093, allocations: 1.45 MB / 398.7 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000626/0.11, allocations: 19.94 kB / 398.7 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004976/0.1105, allocations: 158.4 kB / 398.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000834/0.1113, allocations: 281.4 kB / 399.1 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009527/0.1122, allocations: 351.5 kB / 399.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.1137, allocations: 1.242 MB / 400.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004917/0.1142, allocations: 293 kB / 401 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006675/0.1148, allocations: 474.5 kB / 401.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006817/0.1155, allocations: 0.5252 MB / 402 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.1157, allocations: 124 kB / 402.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000285/0.116, allocations: 159.9 kB / 402.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002345/0.1162, allocations: 255.2 kB / 402.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005447/0.1168, allocations: 0.5405 MB / 403 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001597/0.1184, allocations: 1.413 MB / 404.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1184, allocations: 0 / 404.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1184, allocations: 0 / 404.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.43e-05/0.1184, allocations: 0 / 404.4 MB, free: 11.6 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002773/0.1212, allocations: 1.316 MB / 405.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.1212, allocations: 16.03 kB / 405.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001756/0.1214, allocations: 127.2 kB / 405.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.1216, allocations: 108.3 kB / 406 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007989/0.1224, allocations: 0.5133 MB / 406.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.464e-05/0.1224, allocations: 62.38 kB / 406.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.1226, allocations: 80.33 kB / 406.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.1242, allocations: 0.8884 MB / 407.5 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.1242, allocations: 0 / 407.5 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.074e-05/0.1243, allocations: 32 kB / 407.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.179e-05/0.1244, allocations: 27.97 kB / 407.6 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.126, allocations: 0.7886 MB / 408.4 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005297/0.1313, allocations: 3.018 MB / 411.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.1325, allocations: 0.5993 MB / 412 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007457/0.1332, allocations: 378.3 kB / 412.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.464e-05/0.1333, allocations: 8.562 kB / 412.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.1333, allocations: 51.06 kB / 412.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.445e-06/0.1333, allocations: 0 / 412.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.004836/0.1381, allocations: 2.203 MB / 414.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.1382, allocations: 60.06 kB / 414.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006958/0.1389, allocations: 0.5067 MB / 415.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.115e-05/0.139, allocations: 41.7 kB / 415.2 MB, free: 472 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.1393, allocations: 396.4 kB / 415.6 MB, free: 68 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002488/0.1395, allocations: 261.9 kB / 415.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002445/0.1398, allocations: 138.5 kB / 416 MB, free: 15.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.14, allocations: 378.8 kB / 416.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000677/0.1407, allocations: 305.9 kB / 416.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007424/0.1414, allocations: 425.1 kB / 417.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.1428, allocations: 0.7467 MB / 417.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1428, allocations: 0 / 417.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002237/0.1451, allocations: 1.04 MB / 418.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.1451, allocations: 8 kB / 418.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.1451, allocations: 4.062 kB / 418.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006119/0.1457, allocations: 184.6 kB / 419.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008605/0.1466, allocations: 191.8 kB / 419.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004339/0.1509, allocations: 2.854 MB / 422.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007237/0.1516, allocations: 40.05 kB / 422.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.834e-05/0.1517, allocations: 27.98 kB / 422.2 MB, free: 9.258 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: 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.0004237/0.1521, allocations: 217.7 kB / 422.4 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.1523, allocations: 75.53 kB / 422.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002387/0.1525, allocations: 86.17 kB / 422.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.1525, allocations: 7.938 kB / 422.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.1525, allocations: 4 kB / 422.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.1525, allocations: 7.984 kB / 422.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.1537, allocations: 0.8377 MB / 423.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1537, allocations: 0 / 423.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007492/0.1545, allocations: 151.8 kB / 423.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005887/0.1551, allocations: 188.7 kB / 423.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.601e-05/0.1551, allocations: 23.98 kB / 423.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004154/0.1593, allocations: 2.862 MB / 426.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1593, allocations: 0 / 426.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00286/0.1621, allocations: 1.385 MB / 428 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.1623, allocations: 140.6 kB / 428.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.629e-05/0.1624, allocations: 16 kB / 428.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005911/0.163, allocations: 55.95 kB / 428.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.1632, allocations: 52.52 kB / 428.3 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.005e-05/0.1632, allocations: 27.98 kB / 428.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004697/0.1637, allocations: 354.8 kB / 428.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1637, allocations: 0 / 428.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008697/0.1646, allocations: 232 kB / 428.9 MB, free: 2.328 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.003273/0.1679, allocations: 1.953 MB / 430.8 MB, free: 348 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.1703, allocations: 0.9589 MB / 431.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1703, allocations: 0.6875 kB / 431.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.1718, allocations: 0.6074 MB / 432.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00088/0.1727, allocations: 142.6 kB / 432.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01223/0.185, allocations: 6.885 MB / 439.4 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006385/0.1856, allocations: 0.9539 MB / 440.4 MB, free: 6.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004102/0.186, allocations: 81.06 kB / 440.5 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004345/0.1864, allocations: 291.3 kB / 440.7 MB, free: 6.215 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1864, allocations: 0 / 440.7 MB, free: 6.215 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05683/0.2433, allocations: 17.68 MB / 458.4 MB, free: 4.461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.09, allocations: 4.062 kB / 458.4 MB, free: 4.457 MB / 382.1 MB " [Timeout remaining time 648] (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.072511952006607] 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.184103876003064 12.394624943 12.27375616 Calling exit ...