Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.00136/0.00136, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001485/0.001485, allocations: 208.3 kB / 23.72 MB, free: 4.391 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.376/1.376, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.231, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004583/0.2356, allocations: 3.119 MB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.2372, allocations: 0.8261 MB / 435.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.2374, allocations: 7.938 kB / 435.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.2376, allocations: 63.36 kB / 435.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002463/0.2379, allocations: 130.9 kB / 435.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003704/0.2382, allocations: 151.8 kB / 435.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005154/0.2387, allocations: 498 kB / 435.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.239, allocations: 127 kB / 436 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.2393, allocations: 199.3 kB / 436.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.2395, allocations: 179 kB / 436.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.494e-05/0.2396, allocations: 52 kB / 436.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.2397, allocations: 52 kB / 436.5 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.604e-05/0.2398, allocations: 87.75 kB / 436.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.24, allocations: 187.2 kB / 436.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006349/0.2406, allocations: 0.572 MB / 437.3 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2406, allocations: 0 / 437.3 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2406, allocations: 0 / 437.3 MB, free: 416 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.2406, allocations: 4 kB / 437.3 MB, free: 412 kB / 334.1 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.001178/0.2418, allocations: 0.6339 MB / 438 MB, free: 15.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.2418, allocations: 16.03 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.828e-05/0.2419, allocations: 70.7 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.2421, allocations: 52.66 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/0.2425, allocations: 274.6 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/0.2426, allocations: 29.38 kB / 438.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.2426, allocations: 35.94 kB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007449/0.2434, allocations: 489 kB / 438.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.2434, allocations: 0 / 438.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.2434, allocations: 16 kB / 438.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.2434, allocations: 8 kB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006312/0.2441, allocations: 303.8 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.2462, allocations: 1.299 MB / 440.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005954/0.2468, allocations: 222.7 kB / 440.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.247, allocations: 89.09 kB / 440.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.247, allocations: 0 / 440.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.2471, allocations: 42.5 kB / 440.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.002e-06/0.2471, allocations: 0 / 440.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002088/0.2491, allocations: 0.5985 MB / 441.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.2492, allocations: 59.28 kB / 441.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.2495, allocations: 320.5 kB / 441.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.2495, allocations: 29.7 kB / 441.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.2497, allocations: 240.1 kB / 442.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.898e-05/0.2498, allocations: 59.52 kB / 442.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.138e-05/0.2498, allocations: 53.66 kB / 442.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.25, allocations: 342.8 kB / 442.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.2502, allocations: 79.97 kB / 442.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002579/0.2504, allocations: 162.1 kB / 442.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004592/0.2509, allocations: 251.8 kB / 443 MB, free: 10.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2509, allocations: 3.938 kB / 443 MB, free: 10.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000979/0.2519, allocations: 426.9 kB / 443.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.2519, allocations: 4 kB / 443.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.2519, allocations: 4 kB / 443.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000439/0.2524, allocations: 117.7 kB / 443.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.2525, allocations: 35.92 kB / 443.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004045/0.2566, allocations: 3.334 MB / 446.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.2568, allocations: 43.72 kB / 447 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.2568, allocations: 12 kB / 447 MB, free: 6.145 MB / 350.1 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.0001557/0.2569, allocations: 156.2 kB / 447.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.62e-05/0.257, allocations: 35.86 kB / 447.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.584e-05/0.2571, allocations: 30.25 kB / 447.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2571, allocations: 0 / 447.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2571, allocations: 0 / 447.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2571, allocations: 3.984 kB / 447.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003509/0.2574, allocations: 296.6 kB / 447.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2574, allocations: 0 / 447.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.6e-05/0.2575, allocations: 15.92 kB / 447.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000352/0.2578, allocations: 121.6 kB / 447.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2579, allocations: 4 kB / 447.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003483/0.2613, allocations: 3.241 MB / 450.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2613, allocations: 0 / 450.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008738/0.2622, allocations: 432.8 kB / 451.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-05/0.2623, allocations: 35.73 kB / 451.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.2623, allocations: 4 kB / 451.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.2625, allocations: 31.98 kB / 451.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.2626, allocations: 19.84 kB / 451.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.2626, allocations: 4.188 kB / 451.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.2628, allocations: 227.1 kB / 451.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2628, allocations: 0 / 451.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004698/0.2633, allocations: 99.84 kB / 451.7 MB, free: 1.117 MB / 350.1 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.001208/0.2645, allocations: 0.9665 MB / 452.7 MB, free: 120 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.2656, allocations: 0.4999 MB / 453.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.2656, allocations: 4.484 kB / 453.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004456/0.266, allocations: 341.1 kB / 453.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.2664, allocations: 60.33 kB / 453.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004729/0.2711, allocations: 3.248 MB / 456.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/0.2713, allocations: 173.1 kB / 457 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.2714, allocations: 30.97 kB / 457 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.2715, allocations: 95.41 kB / 457.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2715, allocations: 0 / 457.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0406/0.3121, allocations: 7.799 MB / 464.9 MB, free: 3.852 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.91, allocations: 3.984 kB / 464.9 MB, free: 3.848 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv. Warning: Get data of variable vOut.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.268863135948777]