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.001662/0.001662, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001419/0.001419, allocations: 188.8 kB / 23.72 MB, free: 4.684 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.397/1.397, allocations: 225.6 MB / 252.5 MB, free: 13.05 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.001718/0.001718, allocations: 47.91 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2569, allocations: 52.18 MB / 422.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005116/0.2621, allocations: 3.393 MB / 426 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.2637, allocations: 0.8182 MB / 426.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.2638, allocations: 11.94 kB / 426.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.264, allocations: 63.36 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000324/0.2643, allocations: 131 kB / 427.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003526/0.2647, allocations: 131.8 kB / 427.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005747/0.2653, allocations: 0.498 MB / 427.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.2655, allocations: 125.4 kB / 427.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.2658, allocations: 187.3 kB / 428 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.266, allocations: 207.1 kB / 428.2 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.783e-05/0.2661, allocations: 48 kB / 428.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.4e-05/0.2662, allocations: 52 kB / 428.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.74e-05/0.2662, allocations: 91.75 kB / 428.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.2665, allocations: 222.9 kB / 428.6 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006348/0.2671, allocations: 0.5608 MB / 429.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2671, allocations: 0 / 429.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2671, allocations: 0 / 429.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.2671, allocations: 3.938 kB / 429.2 MB, free: 8.051 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.001313/0.2684, allocations: 0.6331 MB / 429.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2685, allocations: 12.03 kB / 429.8 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001638/0.2686, allocations: 78.66 kB / 429.9 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.2687, allocations: 48.64 kB / 429.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004807/0.2692, allocations: 270.7 kB / 430.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.2692, allocations: 29.31 kB / 430.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.2693, allocations: 35.94 kB / 430.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00072/0.27, allocations: 382.2 kB / 430.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.27, allocations: 0 / 430.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.2701, allocations: 16 kB / 430.7 MB, free: 6.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.2701, allocations: 12 kB / 430.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006538/0.2707, allocations: 299.8 kB / 431 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.2732, allocations: 1.392 MB / 432.4 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.2738, allocations: 218.8 kB / 432.6 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002173/0.274, allocations: 88.81 kB / 432.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.274, allocations: 4 kB / 432.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.2741, allocations: 34.56 kB / 432.7 MB, free: 4.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.2741, allocations: 0 / 432.7 MB, free: 4.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002181/0.2762, allocations: 0.6077 MB / 433.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.2763, allocations: 59.34 kB / 433.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003788/0.2767, allocations: 312.5 kB / 433.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.2767, allocations: 37.7 kB / 433.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.2769, allocations: 224.2 kB / 433.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.848e-05/0.2769, allocations: 63.47 kB / 434 MB, free: 3.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.958e-05/0.277, allocations: 53.66 kB / 434 MB, free: 2.961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.2772, allocations: 342.8 kB / 434.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.2775, allocations: 79.97 kB / 434.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.2777, allocations: 157.4 kB / 434.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005711/0.2783, allocations: 253.2 kB / 434.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2783, allocations: 0 / 434.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001066/0.2794, allocations: 419 kB / 435.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.2794, allocations: 8 kB / 435.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.2794, allocations: 7.984 kB / 435.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004664/0.2799, allocations: 117.6 kB / 435.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.28, allocations: 39.98 kB / 435.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004566/0.2846, allocations: 3.362 MB / 438.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.2849, allocations: 39.72 kB / 438.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.2849, allocations: 11.98 kB / 438.8 MB, free: 13.83 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.0002006/0.2851, allocations: 153.8 kB / 439 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.223e-05/0.2851, allocations: 39.69 kB / 439 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.026e-05/0.2852, allocations: 30.23 kB / 439.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2852, allocations: 0 / 439.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2852, allocations: 3.938 kB / 439.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2852, allocations: 0 / 439.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.2856, allocations: 340.4 kB / 439.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2856, allocations: 8 kB / 439.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.799e-05/0.2857, allocations: 8.125 kB / 439.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000365/0.2861, allocations: 117.6 kB / 439.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.2861, allocations: 4 kB / 439.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003764/0.2898, allocations: 3.264 MB / 442.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2899, allocations: 8.031 kB / 442.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009487/0.2908, allocations: 424.7 kB / 443.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.345e-05/0.2909, allocations: 31.78 kB / 443.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.2909, allocations: 12 kB / 443.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.2911, allocations: 23.97 kB / 443.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.149e-05/0.2912, allocations: 19.91 kB / 443.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.2912, allocations: 4 kB / 443.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002725/0.2915, allocations: 219.1 kB / 443.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2915, allocations: 4 kB / 443.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005356/0.292, allocations: 95.84 kB / 443.6 MB, free: 8.742 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.001359/0.2934, allocations: 0.9703 MB / 444.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.2945, allocations: 0.504 MB / 445.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.2945, allocations: 0 / 445.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004719/0.295, allocations: 341.6 kB / 445.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.2954, allocations: 48.52 kB / 445.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005299/0.3007, allocations: 3.258 MB / 448.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.3012, allocations: 0.7756 MB / 449.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.3013, allocations: 30.95 kB / 449.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.3014, allocations: 95.41 kB / 449.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3014, allocations: 0 / 449.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04441/0.3458, allocations: 7.362 MB / 457 MB, free: 11.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.37, allocations: 3.984 kB / 457 MB, free: 11.27 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.687362683936954]