Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001178/0.001178, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001378/0.001378, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8762/0.8762, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 324.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.22e-05, allocations: 2.281 kB / 324.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00314/0.003162, allocations: 3.133 MB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.004363, allocations: 0.8103 MB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.004534, allocations: 11.94 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.004695, allocations: 67.36 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.004901, allocations: 138.8 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.005207, allocations: 131.8 kB / 328.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003831/0.00559, allocations: 0.513 MB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.005803, allocations: 121.3 kB / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.006114, allocations: 295.2 kB / 329.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.006271, allocations: 147.6 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.038e-05/0.006321, allocations: 52 kB / 330 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.896e-05/0.00639, allocations: 55.98 kB / 330 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.055e-05/0.006441, allocations: 103.6 kB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.979e-05/0.006541, allocations: 155.6 kB / 330.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.006961, allocations: 0.5842 MB / 330.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.003e-06/0.006963, allocations: 0 / 330.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.006964, allocations: 0 / 330.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.006971, allocations: 4 kB / 330.9 MB, free: 9.508 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0007167/0.007687, allocations: 0.6222 MB / 331.5 MB, free: 8.855 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.007725, allocations: 15.97 kB / 331.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.293e-05/0.007788, allocations: 74.72 kB / 331.6 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.007927, allocations: 52.66 kB / 331.6 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.008294, allocations: 288.5 kB / 331.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.008314, allocations: 25.38 kB / 331.9 MB, free: 8.375 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.134e-05/0.008346, allocations: 36.38 kB / 332 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004572/0.008803, allocations: 471.3 kB / 332.4 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.008815, allocations: 0 / 332.4 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.008841, allocations: 16 kB / 332.4 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.008849, allocations: 11.94 kB / 332.5 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003207/0.00917, allocations: 271.9 kB / 332.7 MB, free: 7.551 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.01046, allocations: 1.24 MB / 334 MB, free: 6.219 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.01075, allocations: 186.8 kB / 334.1 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.898e-05/0.01084, allocations: 76.83 kB / 334.2 MB, free: 5.949 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.01086, allocations: 4 kB / 334.2 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.01088, allocations: 46.48 kB / 334.3 MB, free: 5.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.133e-06/0.01088, allocations: 3.938 kB / 334.3 MB, free: 5.887 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008451/0.01173, allocations: 447.1 kB / 334.7 MB, free: 5.438 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.01176, allocations: 55.41 kB / 334.8 MB, free: 5.371 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.01204, allocations: 320.4 kB / 335.1 MB, free: 5.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.01207, allocations: 29.7 kB / 335.1 MB, free: 5.012 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.01221, allocations: 240.1 kB / 335.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.813e-05/0.01225, allocations: 63.48 kB / 335.4 MB, free: 4.711 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.01232, allocations: 53.64 kB / 335.4 MB, free: 4.652 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.01242, allocations: 338.8 kB / 335.8 MB, free: 4.312 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.832e-05/0.01252, allocations: 75.97 kB / 335.9 MB, free: 4.238 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.01266, allocations: 144.5 kB / 336 MB, free: 4.066 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/0.0129, allocations: 221.1 kB / 336.2 MB, free: 3.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.01291, allocations: 4 kB / 336.2 MB, free: 3.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004753/0.01338, allocations: 358.9 kB / 336.6 MB, free: 3.453 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.0134, allocations: 4 kB / 336.6 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.01341, allocations: 7.938 kB / 336.6 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002757/0.01368, allocations: 105.6 kB / 336.7 MB, free: 3.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.945e-05/0.01377, allocations: 39.92 kB / 336.7 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/0.01596, allocations: 3.238 MB / 340 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.01608, allocations: 35.77 kB / 340 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.01609, allocations: 8 kB / 340 MB, free: 15.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (feedback.opAmp.satNeg,feedback.opAmp.satPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.01622, allocations: 153.8 kB / 340.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.01625, allocations: 27.81 kB / 340.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.01629, allocations: 38.25 kB / 340.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01629, allocations: 12.14 kB / 340.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.01629, allocations: 4 kB / 340.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.0163, allocations: 3.984 kB / 340.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.01655, allocations: 308.6 kB / 340.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.01655, allocations: 0 / 340.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.078e-05/0.01659, allocations: 12 kB / 340.5 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.01679, allocations: 109.6 kB / 340.7 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.0168, allocations: 15.88 kB / 340.7 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001952/0.01875, allocations: 3.232 MB / 343.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.01875, allocations: 4.031 kB / 343.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003878/0.01914, allocations: 380.1 kB / 344.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.988e-05/0.01917, allocations: 31.8 kB / 344.3 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.01919, allocations: 11.88 kB / 344.3 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.01929, allocations: 28.05 kB / 344.3 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/0.01934, allocations: 11.97 kB / 344.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.01935, allocations: 11.98 kB / 344.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001496/0.0195, allocations: 223.1 kB / 344.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0195, allocations: 4 kB / 344.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003228/0.01983, allocations: 103.8 kB / 344.7 MB, free: 10.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (feedback.opAmp.satPos,feedback.opAmp.satNeg) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005356/0.02036, allocations: 0.9158 MB / 345.6 MB, free: 9.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004378/0.0208, allocations: 429.1 kB / 346 MB, free: 9.375 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.0208, allocations: 0 / 346 MB, free: 9.375 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002259/0.02103, allocations: 349 kB / 346.4 MB, free: 9.012 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.02129, allocations: 45.42 kB / 346.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.02424, allocations: 3.147 MB / 349.6 MB, free: 5.676 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.02436, allocations: 181.4 kB / 349.7 MB, free: 5.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.848e-05/0.02445, allocations: 30.95 kB / 349.8 MB, free: 5.445 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.02455, allocations: 104.5 kB / 349.9 MB, free: 5.344 MB / 314.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02455, allocations: 0 / 349.9 MB, free: 5.344 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02366/0.04821, allocations: 8.285 MB / 358.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.851/7.899, allocations: 2.922 kB / 358.2 MB, free: 13.2 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable vOut.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv. Warning: Get data of variable vOut.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.628003867343068]