Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008717/0.0008717, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000843/0.000843, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8818/0.8818, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.157e-05/1.3e-05, allocations: 6.219 kB / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.002972/0.002985, allocations: 3.092 MB / 321.6 MB, free: 3.223 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.004404, allocations: 0.7715 MB / 322.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.004554, allocations: 15.94 kB / 322.4 MB, free: 2.434 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.004711, allocations: 67.34 kB / 322.4 MB, free: 2.367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.004868, allocations: 134.8 kB / 322.6 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.005129, allocations: 139.7 kB / 322.7 MB, free: 2.098 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000344/0.005473, allocations: 0.5017 MB / 323.2 MB, free: 1.594 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.005666, allocations: 121.3 kB / 323.3 MB, free: 1.473 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.005909, allocations: 291.3 kB / 323.6 MB, free: 1.188 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.006051, allocations: 143.6 kB / 323.7 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.022e-05/0.006101, allocations: 48 kB / 323.8 MB, free: 1 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.871e-05/0.00614, allocations: 52 kB / 323.8 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.526e-05/0.006195, allocations: 99.59 kB / 323.9 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.402e-05/0.006289, allocations: 155.7 kB / 324.1 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.006665, allocations: 0.5686 MB / 324.7 MB, free: 132 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.006667, allocations: 0 / 324.7 MB, free: 132 kB / 282.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.006668, allocations: 0 / 324.7 MB, free: 132 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.006673, allocations: 0 / 324.7 MB, free: 132 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0007635/0.007436, allocations: 0.6262 MB / 325.3 MB, free: 15.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.007477, allocations: 12.92 kB / 325.3 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.875e-05/0.007536, allocations: 74.72 kB / 325.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.362e-05/0.007589, allocations: 48.66 kB / 325.4 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.007908, allocations: 269.9 kB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.007931, allocations: 25.38 kB / 325.7 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.007962, allocations: 32.38 kB / 325.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004975/0.008459, allocations: 493.3 kB / 326.2 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.00847, allocations: 3.938 kB / 326.2 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.008496, allocations: 20 kB / 326.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.008506, allocations: 8 kB / 326.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003862/0.008892, allocations: 299.8 kB / 326.5 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.01026, allocations: 1.296 MB / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.01064, allocations: 226.6 kB / 328.1 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.01076, allocations: 88.81 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.01078, allocations: 4 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.0108, allocations: 30.56 kB / 328.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.322e-06/0.0108, allocations: 0 / 328.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001633/0.01244, allocations: 0.6083 MB / 328.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.01247, allocations: 59.41 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.01271, allocations: 312.5 kB / 329.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.01272, allocations: 33.64 kB / 329.2 MB, free: 11.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.01285, allocations: 236.1 kB / 329.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.01289, allocations: 63.47 kB / 329.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.01294, allocations: 45.7 kB / 329.5 MB, free: 11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.364e-05/0.01303, allocations: 342.8 kB / 329.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.01315, allocations: 79.95 kB / 329.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.01329, allocations: 165.4 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.01355, allocations: 245.2 kB / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.01355, allocations: 0 / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005457/0.0141, allocations: 426.9 kB / 330.7 MB, free: 9.684 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.01411, allocations: 7.984 kB / 330.8 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.01412, allocations: 4 kB / 330.8 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002835/0.0144, allocations: 113.7 kB / 330.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.836e-05/0.01449, allocations: 39.92 kB / 330.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/0.01689, allocations: 3.342 MB / 334.2 MB, free: 5.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.01699, allocations: 35.83 kB / 334.3 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.017, allocations: 12 kB / 334.3 MB, free: 5.895 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.01711, allocations: 153.7 kB / 334.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.01714, allocations: 35.75 kB / 334.5 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.01718, allocations: 30.23 kB / 334.5 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.01718, allocations: 3.938 kB / 334.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.01718, allocations: 4.062 kB / 334.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.01718, allocations: 0 / 334.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.01741, allocations: 292.6 kB / 334.8 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.01741, allocations: 0 / 334.8 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.914e-05/0.01745, allocations: 19.92 kB / 334.8 MB, free: 5.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002026/0.01765, allocations: 117.7 kB / 334.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.01766, allocations: 4 kB / 334.9 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002224/0.01988, allocations: 3.252 MB / 338.2 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01988, allocations: 0 / 338.2 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/0.02035, allocations: 424.8 kB / 338.6 MB, free: 1.273 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.328e-05/0.02038, allocations: 35.69 kB / 338.6 MB, free: 1.238 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.0204, allocations: 4 kB / 338.6 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.02051, allocations: 27.97 kB / 338.7 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.02055, allocations: 19.97 kB / 338.7 MB, free: 1.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-06/0.02056, allocations: 192 / 338.7 MB, free: 1.188 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001533/0.02071, allocations: 219.1 kB / 338.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02071, allocations: 4 kB / 338.9 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003044/0.02101, allocations: 99.78 kB / 339 MB, free: 0.8672 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007087/0.02172, allocations: 0.967 MB / 340 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006418/0.02236, allocations: 0.5073 MB / 340.5 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.02237, allocations: 0 / 340.5 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002234/0.02259, allocations: 341.7 kB / 340.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.02292, allocations: 51.58 kB / 340.9 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003055/0.02597, allocations: 3.242 MB / 344.1 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.02608, allocations: 177.1 kB / 344.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.881e-05/0.02615, allocations: 26.97 kB / 344.3 MB, free: 11.31 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.953e-05/0.02625, allocations: 96.47 kB / 344.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.613e-06/0.02625, allocations: 0 / 344.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.04956, allocations: 7.903 MB / 352.3 MB, free: 3.496 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.035/8.084, allocations: 2.922 kB / 352.3 MB, free: 3.496 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv. Warning: Get data of variable vOut.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.807885138317943]