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.001048/0.001048, allocations: 80.72 kB / 20.67 MB, free: 3.879 MB / 18.57 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.000984/0.000984, allocations: 153.1 kB / 23.93 MB, free: 0.6211 MB / 18.57 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 0.9235/0.9235, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 1.673e-06/1.673e-06, allocations: 0 / 318.5 MB, free: 6.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.456e-05/1.623e-05, allocations: 2.281 kB / 318.5 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.003266/0.003282, allocations: 3.092 MB / 321.6 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.004847, allocations: 0.7676 MB / 322.3 MB, free: 2.301 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000276/0.005123, allocations: 11.94 kB / 322.3 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.005349, allocations: 71.3 kB / 322.4 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004739/0.005823, allocations: 134.8 kB / 322.6 MB, free: 2.086 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.006189, allocations: 139.8 kB / 322.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004504/0.006639, allocations: 0.5094 MB / 323.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.006886, allocations: 117.4 kB / 323.3 MB, free: 1.32 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003917/0.007278, allocations: 283.4 kB / 323.6 MB, free: 1.043 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.00745, allocations: 147.6 kB / 323.7 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.154e-05/0.007511, allocations: 52 kB / 323.8 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.623e-05/0.007557, allocations: 48 kB / 323.8 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.863e-05/0.007626, allocations: 95.61 kB / 323.9 MB, free: 0.707 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.007788, allocations: 159.7 kB / 324.1 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.008424, allocations: 0.5725 MB / 324.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.008427, allocations: 0 / 324.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.008427, allocations: 0 / 324.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.008434, allocations: 0 / 324.7 MB, free: 15.98 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.0008642/0.009298, allocations: 0.6301 MB / 325.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.009346, allocations: 8.922 kB / 325.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.068e-05/0.009407, allocations: 74.66 kB / 325.4 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.638e-05/0.009473, allocations: 44.66 kB / 325.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003542/0.009827, allocations: 265.9 kB / 325.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.009848, allocations: 29.38 kB / 325.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.00988, allocations: 40.36 kB / 325.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004953/0.01038, allocations: 493.3 kB / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.01039, allocations: 0 / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.01041, allocations: 19.94 kB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.01042, allocations: 8 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003846/0.0108, allocations: 303.8 kB / 326.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.01261, allocations: 1.288 MB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004426/0.01305, allocations: 226.6 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.01319, allocations: 84.83 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.01321, allocations: 7.984 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.01324, allocations: 38.56 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.102e-06/0.01324, allocations: 0 / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001175/0.01441, allocations: 0.6077 MB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.01444, allocations: 51.41 kB / 328.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.01469, allocations: 320.5 kB / 329.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.01471, allocations: 33.64 kB / 329.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.01482, allocations: 228.2 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.258e-05/0.01485, allocations: 59.48 kB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/0.01491, allocations: 53.7 kB / 329.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.647e-05/0.01501, allocations: 342.7 kB / 329.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.01513, allocations: 75.97 kB / 329.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.01529, allocations: 161.4 kB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.01557, allocations: 253.2 kB / 330.3 MB, free: 9.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.01558, allocations: 8 kB / 330.3 MB, free: 9.957 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000645/0.01622, allocations: 415 kB / 330.7 MB, free: 9.539 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.01624, allocations: 8 kB / 330.7 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.01625, allocations: 0 / 330.7 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003133/0.01656, allocations: 121.6 kB / 330.9 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.01669, allocations: 31.98 kB / 330.9 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/0.01958, allocations: 3.346 MB / 334.2 MB, free: 5.797 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.0197, allocations: 39.77 kB / 334.3 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.01971, allocations: 8 kB / 334.3 MB, free: 5.75 MB / 298.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.000125/0.01984, allocations: 158 kB / 334.4 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.01987, allocations: 31.8 kB / 334.5 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.01991, allocations: 34.17 kB / 334.5 MB, free: 5.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.01991, allocations: 3.938 kB / 334.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.01991, allocations: 0 / 334.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.01992, allocations: 7.984 kB / 334.5 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.02017, allocations: 292.5 kB / 334.8 MB, free: 5.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.02017, allocations: 0 / 334.8 MB, free: 5.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.897e-05/0.02021, allocations: 11.98 kB / 334.8 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002026/0.02042, allocations: 113.6 kB / 334.9 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.02043, allocations: 4 kB / 334.9 MB, free: 5.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002112/0.02254, allocations: 3.256 MB / 338.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.02254, allocations: 0 / 338.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004932/0.02303, allocations: 420.9 kB / 338.6 MB, free: 1.133 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4e-05/0.02307, allocations: 47.67 kB / 338.6 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.02309, allocations: 0 / 338.6 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.0232, allocations: 27.98 kB / 338.7 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.02326, allocations: 15.91 kB / 338.7 MB, free: 1.043 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.02327, allocations: 8.188 kB / 338.7 MB, free: 1.035 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.02343, allocations: 223.1 kB / 338.9 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02343, allocations: 0 / 338.9 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000335/0.02377, allocations: 99.84 kB / 339 MB, free: 0.7148 MB / 298.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.0007503/0.02452, allocations: 0.9558 MB / 340 MB, free: 15.72 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006481/0.02517, allocations: 0.5114 MB / 340.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.02517, allocations: 0 / 340.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003102/0.02548, allocations: 344.6 kB / 340.8 MB, free: 14.83 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.0258, allocations: 52.94 kB / 340.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.02971, allocations: 3.23 MB / 344.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.02984, allocations: 177.1 kB / 344.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.547e-05/0.02993, allocations: 30.95 kB / 344.3 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.03003, allocations: 100.5 kB / 344.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of SimCode: time 5.91e-07/0.03003, allocations: 0 / 344.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.0553, allocations: 7.904 MB / 352.3 MB, free: 3.348 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.065/8.12, allocations: 7.078 kB / 352.3 MB, free: 3.344 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/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: 9.846585699357092]