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.001368/0.001368, allocations: 121 kB / 18.5 MB, free: 4.562 MB / 14.72 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.001585/0.001585, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 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 1.43/1.43, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 43.94 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.108, allocations: 53.33 MB / 427.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005061/0.113, allocations: 3.4 MB / 430.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.1146, allocations: 0.8687 MB / 431.3 MB, free: 456 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1147, allocations: 7.938 kB / 431.3 MB, free: 448 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.1149, allocations: 67.34 kB / 431.4 MB, free: 380 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002246/0.1152, allocations: 127 kB / 431.5 MB, free: 252 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.1155, allocations: 147.8 kB / 431.7 MB, free: 104 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2145/0.33, allocations: 0.4922 MB / 432.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.3303, allocations: 123 kB / 432.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004418/0.3308, allocations: 194.8 kB / 432.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.331, allocations: 199.9 kB / 432.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.339e-05/0.3311, allocations: 48.94 kB / 432.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.3312, allocations: 53.38 kB / 432.8 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.238e-05/0.3313, allocations: 101.5 kB / 432.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.3315, allocations: 223.6 kB / 433.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005886/0.3321, allocations: 0.5693 MB / 433.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3321, allocations: 0.7812 kB / 433.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3321, allocations: 0 / 433.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.3321, allocations: 0.9375 kB / 433.7 MB, free: 7.422 MB / 350.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.001068/0.3332, allocations: 0.7128 MB / 434.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.3332, allocations: 10.06 kB / 434.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.897e-05/0.3332, allocations: 9.438 kB / 434.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.575e-05/0.3333, allocations: 70.23 kB / 434.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.3334, allocations: 54.5 kB / 434.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.3338, allocations: 328.8 kB / 434.8 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.3339, allocations: 25.19 kB / 434.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.673e-05/0.3339, allocations: 39.62 kB / 434.9 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000615/0.3345, allocations: 394 kB / 435.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3345, allocations: 0 / 435.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.3346, allocations: 13.02 kB / 435.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.3346, allocations: 8.719 kB / 435.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005989/0.3352, allocations: 295.9 kB / 435.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.3373, allocations: 1.447 MB / 437 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.3379, allocations: 222.3 kB / 437.2 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002009/0.3381, allocations: 92.38 kB / 437.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.3381, allocations: 1.312 kB / 437.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3381, allocations: 40.25 kB / 437.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 2.054e-06/0.3381, allocations: 0.6562 kB / 437.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002201/0.3403, allocations: 0.7502 MB / 438.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.3404, allocations: 56.55 kB / 438.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.3407, allocations: 319.5 kB / 438.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.3407, allocations: 32.17 kB / 438.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.3408, allocations: 234 kB / 438.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.536e-05/0.3409, allocations: 59.64 kB / 438.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.74e-05/0.341, allocations: 46.97 kB / 438.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.107e-05/0.341, allocations: 338.2 kB / 439.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.3412, allocations: 83.66 kB / 439.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.3414, allocations: 162 kB / 439.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000402/0.3418, allocations: 250.9 kB / 439.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.3419, allocations: 1.812 kB / 439.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009524/0.3428, allocations: 427.6 kB / 440.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.3428, allocations: 6.719 kB / 440.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.3428, allocations: 4.234 kB / 440.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004361/0.3433, allocations: 118 kB / 440.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.3434, allocations: 38.61 kB / 440.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00321/0.3466, allocations: 3.567 MB / 443.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.3469, allocations: 38.3 kB / 443.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.3469, allocations: 9.578 kB / 443.9 MB, free: 1.105 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.0001412/0.347, allocations: 155.6 kB / 444 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.265e-05/0.3471, allocations: 33.28 kB / 444.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.309e-05/0.3471, allocations: 33.73 kB / 444.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.3471, allocations: 2.875 kB / 444.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3471, allocations: 2.219 kB / 444.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3471, allocations: 6.406 kB / 444.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003555/0.3475, allocations: 365.2 kB / 444.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3475, allocations: 1.125 kB / 444.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-05/0.3476, allocations: 17.14 kB / 444.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000336/0.3479, allocations: 115.9 kB / 444.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.3479, allocations: 5.859 kB / 444.6 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003649/0.3516, allocations: 3.471 MB / 448.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3516, allocations: 0 / 448.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000938/0.3525, allocations: 434.9 kB / 448.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3526, allocations: 104.8 kB / 448.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.3526, allocations: 9.734 kB / 448.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.3529, allocations: 23.28 kB / 448.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.448e-05/0.3529, allocations: 15.66 kB / 448.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.3529, allocations: 3.672 kB / 448.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.3532, allocations: 222.1 kB / 448.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3532, allocations: 0 / 448.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005307/0.3537, allocations: 102.8 kB / 449 MB, free: 12.96 MB / 366.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.001268/0.355, allocations: 0.9697 MB / 449.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.3562, allocations: 0.5058 MB / 450.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3562, allocations: 1.719 kB / 450.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005304/0.3567, allocations: 341.7 kB / 450.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004161/0.3571, allocations: 49.03 kB / 450.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005138/0.3623, allocations: 3.257 MB / 454.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004624/0.3627, allocations: 0.7791 MB / 454.9 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.3628, allocations: 28.41 kB / 454.9 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.363, allocations: 102.1 kB / 455 MB, free: 8.762 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.363, allocations: 3.938 kB / 455 MB, free: 8.758 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03716/0.4001, allocations: 7.241 MB / 462.2 MB, free: 6.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.63, allocations: 16.31 kB / 462.2 MB, free: 6.719 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/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: 15.040449769992847]