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.001222/0.001222, allocations: 108.6 kB / 21.22 MB, free: 0.7422 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.001285/0.001285, allocations: 187.7 kB / 24.5 MB, free: 4.152 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.366/1.366, allocations: 225.6 MB / 253.3 MB, free: 13.02 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 43.92 kB / 371.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2262, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004713/0.231, allocations: 3.392 MB / 426.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.2324, allocations: 0.822 MB / 427.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.2325, allocations: 8 kB / 427.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001898/0.2327, allocations: 75.28 kB / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002286/0.233, allocations: 119 kB / 427.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.2333, allocations: 139.8 kB / 428 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005348/0.2338, allocations: 0.4902 MB / 428.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002693/0.2341, allocations: 121.4 kB / 428.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.2344, allocations: 199.2 kB / 428.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.2346, allocations: 199.2 kB / 429 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.256e-05/0.2347, allocations: 48 kB / 429 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.641e-05/0.2348, allocations: 52 kB / 429.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.993e-05/0.2349, allocations: 91.69 kB / 429.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/0.2351, allocations: 222.9 kB / 429.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006272/0.2357, allocations: 0.5647 MB / 430 MB, free: 8.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.2357, allocations: 0 / 430 MB, free: 8.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2357, allocations: 0 / 430 MB, free: 8.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.2357, allocations: 0 / 430 MB, free: 8.074 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.001182/0.2369, allocations: 0.6378 MB / 430.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.237, allocations: 12.03 kB / 430.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.346e-05/0.237, allocations: 9.188 kB / 430.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.33e-05/0.2371, allocations: 74.72 kB / 430.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.19e-05/0.2371, allocations: 44.66 kB / 430.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/0.2376, allocations: 274.7 kB / 431 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.2376, allocations: 29.12 kB / 431 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.889e-05/0.2377, allocations: 32 kB / 431.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006905/0.2384, allocations: 390.1 kB / 431.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.2384, allocations: 0 / 431.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.2384, allocations: 16 kB / 431.5 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.2384, allocations: 8 kB / 431.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006348/0.2391, allocations: 299.9 kB / 431.8 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00224/0.2413, allocations: 1.392 MB / 433.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006246/0.2419, allocations: 222.8 kB / 433.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.2421, allocations: 96.73 kB / 433.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2422, allocations: 4 kB / 433.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.2422, allocations: 38.56 kB / 433.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.2422, allocations: 0 / 433.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002187/0.2444, allocations: 0.5966 MB / 434.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.2444, allocations: 59.33 kB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003642/0.2448, allocations: 312.5 kB / 434.5 MB, free: 3.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.2448, allocations: 29.7 kB / 434.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.245, allocations: 228.2 kB / 434.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.587e-05/0.245, allocations: 67.45 kB / 434.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/0.2451, allocations: 53.66 kB / 434.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.2453, allocations: 338.8 kB / 435.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.2455, allocations: 87.89 kB / 435.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.2458, allocations: 161.4 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.2463, allocations: 244.2 kB / 435.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2463, allocations: 0 / 435.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001055/0.2473, allocations: 426.9 kB / 436.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2473, allocations: 4 kB / 436.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.2473, allocations: 4 kB / 436.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004867/0.2478, allocations: 117.7 kB / 436.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.248, allocations: 39.92 kB / 436.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004454/0.2524, allocations: 3.366 MB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.2527, allocations: 35.77 kB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.2527, allocations: 8 kB / 439.6 MB, free: 13.84 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.0002157/0.2529, allocations: 161.8 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.861e-05/0.253, allocations: 35.69 kB / 439.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.553e-05/0.2531, allocations: 30.23 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2531, allocations: 0 / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2531, allocations: 4 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2531, allocations: 0 / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.2536, allocations: 340.4 kB / 440.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2536, allocations: 0 / 440.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.178e-05/0.2536, allocations: 19.92 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003646/0.254, allocations: 113.6 kB / 440.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.254, allocations: 0 / 440.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003804/0.2578, allocations: 3.272 MB / 443.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2578, allocations: 0 / 443.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009362/0.2588, allocations: 432.8 kB / 444 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.513e-05/0.2588, allocations: 27.8 kB / 444 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.2589, allocations: 7.984 kB / 444.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.2591, allocations: 23.98 kB / 444.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.2591, allocations: 15.97 kB / 444.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.2592, allocations: 4 kB / 444.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.2594, allocations: 223.1 kB / 444.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2594, allocations: 0 / 444.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004916/0.2599, allocations: 99.84 kB / 444.4 MB, free: 8.75 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.001254/0.2611, allocations: 0.9673 MB / 445.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.2623, allocations: 0.505 MB / 445.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2623, allocations: 0 / 445.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004783/0.2628, allocations: 337.6 kB / 446.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004371/0.2632, allocations: 70.86 kB / 446.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005102/0.2683, allocations: 3.248 MB / 449.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.2688, allocations: 0.7795 MB / 450.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.2689, allocations: 22.98 kB / 450.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.269, allocations: 99.39 kB / 450.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.269, allocations: 0 / 450.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03465/0.3037, allocations: 7.383 MB / 457.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/12.99, allocations: 10.72 kB / 457.8 MB, free: 11.26 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.331996559049003]