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.001275/0.001275, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001412/0.001412, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.388/1.388, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001499/0.001499, allocations: 51.91 kB / 377.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.247, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004474/0.2515, allocations: 3.115 MB / 434.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.2531, allocations: 0.8299 MB / 435.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001985/0.2533, allocations: 7.938 kB / 435.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.2535, allocations: 71.34 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002507/0.2538, allocations: 123 kB / 435.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003979/0.2542, allocations: 151.8 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005309/0.2547, allocations: 0.4941 MB / 435.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.255, allocations: 129.4 kB / 436 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002889/0.2553, allocations: 195.3 kB / 436.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.2555, allocations: 195.2 kB / 436.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.874e-05/0.2556, allocations: 48 kB / 436.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.2557, allocations: 56 kB / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.106e-05/0.2557, allocations: 99.62 kB / 436.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.2559, allocations: 183.2 kB / 436.8 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005956/0.2565, allocations: 0.5725 MB / 437.4 MB, free: 376 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2565, allocations: 8 kB / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2565, allocations: 0 / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2565, allocations: 0 / 437.4 MB, free: 368 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.001154/0.2577, allocations: 0.6378 MB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.2577, allocations: 8.031 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.415e-05/0.2578, allocations: 74.72 kB / 438.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.258, allocations: 52.69 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004993/0.2585, allocations: 270.6 kB / 438.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.2585, allocations: 25.38 kB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.2586, allocations: 39.94 kB / 438.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007398/0.2593, allocations: 496.9 kB / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.2593, allocations: 0 / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.2594, allocations: 16 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2594, allocations: 8 kB / 439 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006145/0.26, allocations: 299.9 kB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.2621, allocations: 1.298 MB / 440.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000613/0.2627, allocations: 221.5 kB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.263, allocations: 89.05 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.263, allocations: 7.984 kB / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.263, allocations: 42.5 kB / 440.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.263, allocations: 3.938 kB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002083/0.2651, allocations: 0.5924 MB / 441.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.2651, allocations: 55.34 kB / 441.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003617/0.2655, allocations: 324.5 kB / 441.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.2655, allocations: 25.7 kB / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.2657, allocations: 240.1 kB / 442.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/0.2657, allocations: 59.52 kB / 442.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.623e-05/0.2658, allocations: 53.66 kB / 442.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.266, allocations: 342.8 kB / 442.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.2662, allocations: 79.95 kB / 442.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.2664, allocations: 166.1 kB / 442.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004584/0.2669, allocations: 243.5 kB / 443.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2669, allocations: 0 / 443.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009867/0.2679, allocations: 434.9 kB / 443.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.2679, allocations: 7.938 kB / 443.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.2679, allocations: 4 kB / 443.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004559/0.2684, allocations: 117.7 kB / 443.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.2685, allocations: 39.92 kB / 443.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/0.2727, allocations: 3.334 MB / 447 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.2729, allocations: 39.73 kB / 447 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.273, allocations: 15.98 kB / 447 MB, free: 6.098 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.0001925/0.2732, allocations: 157.8 kB / 447.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.963e-05/0.2732, allocations: 31.8 kB / 447.2 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.498e-05/0.2733, allocations: 26.25 kB / 447.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2733, allocations: 4 kB / 447.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2733, allocations: 0 / 447.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2733, allocations: 0 / 447.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003589/0.2736, allocations: 296.5 kB / 447.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2736, allocations: 0 / 447.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.901e-05/0.2737, allocations: 15.98 kB / 447.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003575/0.2741, allocations: 125.5 kB / 447.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.2741, allocations: 4 kB / 447.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003522/0.2776, allocations: 3.245 MB / 450.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2776, allocations: 0 / 450.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008874/0.2785, allocations: 428.7 kB / 451.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.642e-05/0.2786, allocations: 35.73 kB / 451.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.2786, allocations: 8 kB / 451.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.2788, allocations: 23.97 kB / 451.4 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/0.2789, allocations: 19.97 kB / 451.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.2789, allocations: 4 kB / 451.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.2791, allocations: 223.1 kB / 451.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2791, allocations: 0 / 451.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004956/0.2796, allocations: 99.78 kB / 451.8 MB, free: 1.078 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.001172/0.2808, allocations: 0.9703 MB / 452.7 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.2819, allocations: 0.5081 MB / 453.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2819, allocations: 4.188 kB / 453.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004306/0.2823, allocations: 337.2 kB / 453.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.2827, allocations: 40.42 kB / 453.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/0.2876, allocations: 3.267 MB / 456.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001739/0.2877, allocations: 173.1 kB / 457 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.2878, allocations: 26.97 kB / 457.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.288, allocations: 99.41 kB / 457.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.288, allocations: 0 / 457.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03983/0.3278, allocations: 7.883 MB / 465.1 MB, free: 3.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.9, allocations: 7.984 kB / 465.1 MB, free: 3.715 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.27894763101358]