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.001855/0.001855, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002274/0.002274, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.412/1.412, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001513/0.001513, allocations: 51.92 kB / 370.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2513, allocations: 52.18 MB / 422.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005211/0.2565, allocations: 3.392 MB / 426.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.2582, allocations: 0.8259 MB / 426.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002198/0.2584, allocations: 4 kB / 426.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002256/0.2586, allocations: 67.36 kB / 426.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.2589, allocations: 123 kB / 427.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.2593, allocations: 139.8 kB / 427.2 MB, free: 10 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006148/0.2599, allocations: 0.498 MB / 427.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002802/0.2602, allocations: 121.4 kB / 427.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.2605, allocations: 191.3 kB / 428 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/0.2607, allocations: 207.1 kB / 428.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.221e-05/0.2608, allocations: 48 kB / 428.3 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.519e-05/0.2609, allocations: 48 kB / 428.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.717e-05/0.261, allocations: 95.69 kB / 428.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002156/0.2612, allocations: 222.9 kB / 428.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000627/0.2618, allocations: 0.5647 MB / 429.2 MB, free: 8.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.2618, allocations: 0 / 429.2 MB, free: 8.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2618, allocations: 4 kB / 429.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.2618, allocations: 0 / 429.2 MB, free: 8.02 MB / 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.00124/0.2631, allocations: 0.634 MB / 429.8 MB, free: 7.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.2631, allocations: 8.031 kB / 429.8 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.139e-05/0.2632, allocations: 74.72 kB / 429.9 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.481e-05/0.2633, allocations: 48.66 kB / 429.9 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005204/0.2638, allocations: 262.7 kB / 430.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.233e-05/0.2638, allocations: 29.38 kB / 430.2 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/0.2639, allocations: 31.94 kB / 430.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007261/0.2646, allocations: 398.1 kB / 430.7 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2646, allocations: 3.938 kB / 430.7 MB, free: 6.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.487e-05/0.2647, allocations: 16 kB / 430.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.2647, allocations: 8 kB / 430.7 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006507/0.2653, allocations: 299.9 kB / 431 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002341/0.2677, allocations: 1.392 MB / 432.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000628/0.2683, allocations: 218.8 kB / 432.6 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.2685, allocations: 84.81 kB / 432.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.2685, allocations: 4 kB / 432.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.2686, allocations: 38.5 kB / 432.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.332e-06/0.2686, allocations: 4 kB / 432.7 MB, free: 4.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002198/0.2708, allocations: 0.6004 MB / 433.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.2708, allocations: 59.34 kB / 433.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003583/0.2712, allocations: 312.5 kB / 433.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.2712, allocations: 29.7 kB / 433.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.2714, allocations: 232.2 kB / 433.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.79e-05/0.2714, allocations: 55.48 kB / 434 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.424e-05/0.2715, allocations: 61.66 kB / 434 MB, free: 2.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2717, allocations: 338.8 kB / 434.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.2719, allocations: 79.97 kB / 434.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.2722, allocations: 165.3 kB / 434.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004725/0.2726, allocations: 248 kB / 434.9 MB, free: 2.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.2726, allocations: 4 kB / 434.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001032/0.2737, allocations: 418.9 kB / 435.3 MB, free: 1.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.2737, allocations: 12.06 kB / 435.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.2737, allocations: 0 / 435.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004574/0.2742, allocations: 117.6 kB / 435.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.2743, allocations: 43.92 kB / 435.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004367/0.2787, allocations: 3.366 MB / 438.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.279, allocations: 35.78 kB / 438.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.279, allocations: 8 kB / 438.8 MB, free: 13.8 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.0002246/0.2792, allocations: 157.7 kB / 439 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.221e-05/0.2793, allocations: 39.81 kB / 439 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.683e-05/0.2793, allocations: 26.23 kB / 439.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2793, allocations: 4 kB / 439.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2794, allocations: 0 / 439.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2794, allocations: 0 / 439.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.2798, allocations: 336.4 kB / 439.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.2798, allocations: 0 / 439.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.52e-05/0.2799, allocations: 15.98 kB / 439.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003926/0.2803, allocations: 121.7 kB / 439.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.2803, allocations: 3.938 kB / 439.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003779/0.2841, allocations: 3.264 MB / 442.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2841, allocations: 192 / 442.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009096/0.285, allocations: 440.5 kB / 443.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.634e-05/0.285, allocations: 35.78 kB / 443.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.244e-05/0.2851, allocations: 4 kB / 443.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.2853, allocations: 27.97 kB / 443.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.2853, allocations: 15.98 kB / 443.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.2854, allocations: 7.984 kB / 443.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002408/0.2856, allocations: 219.1 kB / 443.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2856, allocations: 0 / 443.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004967/0.2861, allocations: 95.84 kB / 443.6 MB, free: 8.715 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.001274/0.2874, allocations: 0.9675 MB / 444.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.2885, allocations: 0.507 MB / 445.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2885, allocations: 0 / 445.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004645/0.289, allocations: 333.2 kB / 445.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.2894, allocations: 48.42 kB / 445.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005172/0.2946, allocations: 3.25 MB / 448.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.295, allocations: 0.7834 MB / 449.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.2951, allocations: 30.95 kB / 449.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.2952, allocations: 99.34 kB / 449.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2952, allocations: 0 / 449.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03923/0.3345, allocations: 7.348 MB / 457 MB, free: 11.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.3, allocations: 12.05 kB / 457 MB, free: 11.25 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/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: 15.743936054001097]