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.0008631/0.0008631, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008177/0.0008177, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8882/0.8882, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.673e-06/1.673e-06, allocations: 0 / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.049e-05/2.216e-05, allocations: 6.219 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.003072/0.003094, allocations: 3.124 MB / 327.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.004357, allocations: 0.8338 MB / 328.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.004508, allocations: 4 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.00466, allocations: 71.3 kB / 328.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001749/0.004835, allocations: 138.8 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.005168, allocations: 155.7 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.005553, allocations: 0.513 MB / 329.5 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/0.005759, allocations: 117.3 kB / 329.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003384/0.006097, allocations: 291.3 kB / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.006247, allocations: 147.5 kB / 330 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.006291, allocations: 56 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.713e-05/0.006358, allocations: 51.98 kB / 330.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.959e-05/0.006407, allocations: 95.67 kB / 330.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.769e-05/0.006505, allocations: 159.6 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004453/0.00695, allocations: 0.5764 MB / 330.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.006955, allocations: 4 kB / 330.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.006956, allocations: 0 / 330.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.006965, allocations: 0 / 330.9 MB, free: 9.543 MB / 298.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.0008381/0.007803, allocations: 0.6371 MB / 331.6 MB, free: 8.879 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.007843, allocations: 12.03 kB / 331.6 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.92e-05/0.007902, allocations: 66.72 kB / 331.6 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.008034, allocations: 56.64 kB / 331.7 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003361/0.00837, allocations: 269.9 kB / 332 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.00839, allocations: 29.38 kB / 332 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.00842, allocations: 32.38 kB / 332 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.008917, allocations: 497.3 kB / 332.5 MB, free: 7.863 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.008927, allocations: 0 / 332.5 MB, free: 7.863 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.008951, allocations: 12 kB / 332.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.00896, allocations: 8 kB / 332.5 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003764/0.009336, allocations: 307.8 kB / 332.8 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.01075, allocations: 1.292 MB / 334.1 MB, free: 6.168 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003676/0.01111, allocations: 230.7 kB / 334.3 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.01123, allocations: 87.48 kB / 334.4 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.01125, allocations: 0 / 334.4 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.01127, allocations: 38.56 kB / 334.5 MB, free: 5.801 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.152e-06/0.01128, allocations: 0 / 334.5 MB, free: 5.801 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001145/0.01242, allocations: 0.6043 MB / 335.1 MB, free: 5.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.01245, allocations: 55.39 kB / 335.1 MB, free: 5.113 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.01269, allocations: 324.5 kB / 335.4 MB, free: 4.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.0127, allocations: 29.7 kB / 335.5 MB, free: 4.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.777e-05/0.0128, allocations: 232.2 kB / 335.7 MB, free: 4.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.727e-05/0.01283, allocations: 59.52 kB / 335.8 MB, free: 4.461 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/0.01288, allocations: 49.66 kB / 335.8 MB, free: 4.406 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.653e-05/0.01297, allocations: 342.8 kB / 336.1 MB, free: 4.062 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.01309, allocations: 79.95 kB / 336.2 MB, free: 3.984 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.01323, allocations: 165.3 kB / 336.4 MB, free: 3.789 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.0135, allocations: 245.2 kB / 336.6 MB, free: 3.516 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.0135, allocations: 0 / 336.6 MB, free: 3.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005323/0.01403, allocations: 434.9 kB / 337 MB, free: 3.078 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.01405, allocations: 4 kB / 337 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.01405, allocations: 4 kB / 337.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000279/0.01433, allocations: 109.6 kB / 337.2 MB, free: 2.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.907e-05/0.01442, allocations: 47.97 kB / 337.2 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/0.01671, allocations: 3.326 MB / 340.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.01683, allocations: 47.78 kB / 340.6 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.01686, allocations: 12 kB / 340.6 MB, free: 15.3 MB / 314.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.01697, allocations: 153.8 kB / 340.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.928e-05/0.017, allocations: 27.86 kB / 340.8 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.187e-05/0.01703, allocations: 30.25 kB / 340.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.01703, allocations: 3.938 kB / 340.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.01703, allocations: 0 / 340.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.01704, allocations: 0 / 340.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.0173, allocations: 304.4 kB / 341.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.0173, allocations: 0 / 341.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.756e-05/0.01733, allocations: 15.94 kB / 341.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002043/0.01754, allocations: 109.6 kB / 341.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.01755, allocations: 11.98 kB / 341.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002331/0.01988, allocations: 3.245 MB / 344.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.01988, allocations: 4.062 kB / 344.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.02033, allocations: 420.8 kB / 344.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.138e-05/0.02037, allocations: 39.67 kB / 344.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.02039, allocations: 4 kB / 344.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.02049, allocations: 24.11 kB / 345 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.02054, allocations: 19.97 kB / 345 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.02055, allocations: 15.98 kB / 345 MB, free: 10.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001476/0.0207, allocations: 223.1 kB / 345.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0207, allocations: 0 / 345.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003358/0.02103, allocations: 99.78 kB / 345.3 MB, free: 10.27 MB / 314.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.0006704/0.0217, allocations: 0.9663 MB / 346.3 MB, free: 9.273 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006769/0.02238, allocations: 0.5114 MB / 346.8 MB, free: 8.738 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.02238, allocations: 0 / 346.8 MB, free: 8.738 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002235/0.0226, allocations: 341.7 kB / 347.1 MB, free: 8.379 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.02291, allocations: 44.67 kB / 347.2 MB, free: 8.336 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.02614, allocations: 3.243 MB / 350.4 MB, free: 4.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000131/0.02627, allocations: 177.1 kB / 350.6 MB, free: 4.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.932e-05/0.02637, allocations: 22.97 kB / 350.6 MB, free: 4.707 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.02647, allocations: 104.5 kB / 350.7 MB, free: 4.605 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.02647, allocations: 0 / 350.7 MB, free: 4.605 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02415/0.05062, allocations: 7.934 MB / 358.6 MB, free: 12.87 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/7.821, allocations: 7.344 kB / 358.6 MB, free: 12.87 MB / 330.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.482955944724381]