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.001087/0.001087, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008951/0.0008951, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9111/0.9111, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.462e-05/1.6e-05, allocations: 6.281 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004758/0.004774, allocations: 5.365 MB / 330 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.007191, allocations: 1.533 MB / 331.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003955/0.007586, allocations: 19.94 kB / 331.5 MB, free: 8.957 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000283/0.007869, allocations: 170.2 kB / 331.7 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004186/0.008288, allocations: 309 kB / 332 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007388/0.009027, allocations: 411.3 kB / 332.4 MB, free: 8.082 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001371/0.0104, allocations: 1.445 MB / 333.8 MB, free: 6.633 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004288/0.01083, allocations: 281.7 kB / 334.1 MB, free: 6.336 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009909/0.01182, allocations: 0.7603 MB / 334.9 MB, free: 5.574 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003875/0.0122, allocations: 438.8 kB / 335.3 MB, free: 5.145 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.01233, allocations: 132 kB / 335.4 MB, free: 5.016 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.01256, allocations: 180 kB / 335.6 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.0127, allocations: 275.1 kB / 335.9 MB, free: 4.566 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004948/0.01319, allocations: 423 kB / 336.3 MB, free: 4.152 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.01425, allocations: 1.624 MB / 337.9 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.01425, allocations: 0 / 337.9 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01425, allocations: 4 kB / 337.9 MB, free: 2.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.01426, allocations: 3.938 kB / 337.9 MB, free: 2.516 MB / 298.7 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.001536/0.0158, allocations: 1.325 MB / 339.2 MB, free: 1.156 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.01584, allocations: 12.03 kB / 339.2 MB, free: 1.145 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.01595, allocations: 135.6 kB / 339.4 MB, free: 1.004 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/0.01617, allocations: 132.2 kB / 339.5 MB, free: 0.875 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000788/0.01696, allocations: 0.4932 MB / 340 MB, free: 364 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.806e-05/0.017, allocations: 66.36 kB / 340.1 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.01709, allocations: 88.38 kB / 340.1 MB, free: 212 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.01815, allocations: 1.102 MB / 341.3 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.01816, allocations: 4.125 kB / 341.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.199e-05/0.01822, allocations: 44.12 kB / 341.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.01824, allocations: 24 kB / 341.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.01927, allocations: 0.8472 MB / 342.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003206/0.02247, allocations: 2.891 MB / 345.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000726/0.0232, allocations: 0.614 MB / 345.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004242/0.02362, allocations: 395.2 kB / 346.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.864e-05/0.02366, allocations: 16.64 kB / 346.1 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.02369, allocations: 47.16 kB / 346.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 2.224e-06/0.02369, allocations: 3.938 kB / 346.1 MB, free: 10.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=73): time 0.002994/0.02668, allocations: 2.198 MB / 348.3 MB, free: 7.785 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.02672, allocations: 60.06 kB / 348.4 MB, free: 7.715 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004728/0.02719, allocations: 0.6251 MB / 349 MB, free: 7.078 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/0.02723, allocations: 33.7 kB / 349 MB, free: 7.039 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.02742, allocations: 448.3 kB / 349.5 MB, free: 6.594 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.02755, allocations: 277.7 kB / 349.7 MB, free: 6.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.0277, allocations: 142.6 kB / 349.9 MB, free: 6.176 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.02781, allocations: 386.8 kB / 350.3 MB, free: 5.789 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004058/0.02822, allocations: 329.9 kB / 350.6 MB, free: 5.465 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004781/0.02869, allocations: 464.6 kB / 351 MB, free: 4.965 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009551/0.02965, allocations: 0.8086 MB / 351.8 MB, free: 4.109 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.02965, allocations: 0 / 351.8 MB, free: 4.109 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001361/0.03101, allocations: 1.107 MB / 353 MB, free: 2.988 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.03103, allocations: 11.94 kB / 353 MB, free: 2.977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.03104, allocations: 4 kB / 353 MB, free: 2.973 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003569/0.0314, allocations: 195.1 kB / 353.2 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000448/0.03185, allocations: 199.7 kB / 353.4 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002805/0.03465, allocations: 2.755 MB / 356.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002822/0.03493, allocations: 36.05 kB / 356.1 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/0.03497, allocations: 31.98 kB / 356.2 MB, free: 15.66 MB / 330.7 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.0002367/0.03521, allocations: 229.7 kB / 356.4 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.928e-05/0.03529, allocations: 83.48 kB / 356.5 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.49e-05/0.03538, allocations: 99.19 kB / 356.6 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.03539, allocations: 8 kB / 356.6 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.0354, allocations: 8 kB / 356.6 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.0354, allocations: 3.984 kB / 356.6 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006113/0.03601, allocations: 0.7006 MB / 357.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.03602, allocations: 0 / 357.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003535/0.03637, allocations: 147.8 kB / 357.4 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002929/0.03666, allocations: 184.7 kB / 357.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.91e-05/0.0367, allocations: 27.92 kB / 357.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.03886, allocations: 2.75 MB / 360.4 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.03886, allocations: 0 / 360.4 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.04064, allocations: 1.416 MB / 361.8 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.184e-05/0.04071, allocations: 75.47 kB / 361.9 MB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.981e-05/0.04077, allocations: 19.94 kB / 361.9 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.04105, allocations: 51.95 kB / 362 MB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.561e-05/0.04115, allocations: 60.48 kB / 362 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.098e-05/0.04118, allocations: 23.98 kB / 362 MB, free: 9.598 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003177/0.0415, allocations: 427.3 kB / 362.5 MB, free: 9.188 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0415, allocations: 3.938 kB / 362.5 MB, free: 9.184 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005366/0.04203, allocations: 243.9 kB / 362.7 MB, free: 8.945 MB / 330.7 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.002004/0.04404, allocations: 2.008 MB / 364.7 MB, free: 6.906 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.04546, allocations: 0.9903 MB / 365.7 MB, free: 5.906 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.04546, allocations: 4 kB / 365.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007972/0.04626, allocations: 0.6081 MB / 366.3 MB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.04673, allocations: 149.8 kB / 366.5 MB, free: 5.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007305/0.05404, allocations: 7.283 MB / 373.7 MB, free: 13.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.05428, allocations: 391.2 kB / 374.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.05451, allocations: 93.45 kB / 374.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002743/0.05478, allocations: 324.4 kB / 374.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of SimCode: time 9.22e-07/0.05478, allocations: 0 / 374.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04243/0.09721, allocations: 20.77 MB / 395.3 MB, free: 8.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.411/7.508, allocations: 0 / 395.3 MB, free: 8.34 MB / 362.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.9988e-12 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] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Time from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor1.ct.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor1.ct.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor1.Tr.C.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor1.Tr.C.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor2.ct.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor2.ct.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor2.Tr.C.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor2.Tr.C.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.393352554179728]