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.001606/0.001606, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.001314/0.001314, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.41/1.41, allocations: 230.6 MB / 254.1 MB, free: 15.08 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="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 0.001492/0.001492, allocations: 51.94 kB / 373 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1118, allocations: 53.33 MB / 426.4 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005077/0.1169, allocations: 3.394 MB / 429.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.1186, allocations: 0.8688 MB / 430.6 MB, free: 460 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.1187, allocations: 7.938 kB / 430.6 MB, free: 452 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.1189, allocations: 63.36 kB / 430.7 MB, free: 388 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002275/0.1191, allocations: 131 kB / 430.8 MB, free: 256 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.1195, allocations: 143.8 kB / 431 MB, free: 112 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2019/0.3214, allocations: 0.4939 MB / 431.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003108/0.3217, allocations: 125 kB / 431.6 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003571/0.3221, allocations: 198.4 kB / 431.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002232/0.3223, allocations: 196.8 kB / 432 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-05/0.3224, allocations: 51.81 kB / 432 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.3225, allocations: 52.06 kB / 432.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.29e-05/0.3225, allocations: 98.39 kB / 432.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.3227, allocations: 217.2 kB / 432.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005247/0.3232, allocations: 0.573 MB / 432.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3232, allocations: 0.9844 kB / 432.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3233, allocations: 0 / 432.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3233, allocations: 2.125 kB / 432.9 MB, free: 7.469 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.001002/0.3243, allocations: 0.7158 MB / 433.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.3243, allocations: 9.344 kB / 433.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.001e-05/0.3244, allocations: 72.05 kB / 433.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.3245, allocations: 53.78 kB / 433.8 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00037/0.3249, allocations: 328.9 kB / 434.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.3249, allocations: 27.91 kB / 434.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/0.325, allocations: 32.41 kB / 434.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/0.3256, allocations: 391.9 kB / 434.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.3256, allocations: 0 / 434.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.3256, allocations: 14.38 kB / 434.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.3257, allocations: 8.562 kB / 434.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006557/0.3263, allocations: 304 kB / 434.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.3285, allocations: 1.437 MB / 436.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006461/0.3292, allocations: 229.9 kB / 436.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.3294, allocations: 88.28 kB / 436.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.3294, allocations: 2.125 kB / 436.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3294, allocations: 37.2 kB / 436.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.362e-06/0.3294, allocations: 4 kB / 436.7 MB, free: 5.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002325/0.3318, allocations: 0.7558 MB / 437.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.386e-05/0.3318, allocations: 53.66 kB / 437.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.3321, allocations: 317.6 kB / 437.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.3321, allocations: 33.45 kB / 437.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.3322, allocations: 233.9 kB / 438 MB, free: 5.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.439e-05/0.3323, allocations: 56.84 kB / 438.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.892e-05/0.3324, allocations: 51.08 kB / 438.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.227e-05/0.3324, allocations: 342.4 kB / 438.5 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.3326, allocations: 79.5 kB / 438.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.3329, allocations: 167.9 kB / 438.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004309/0.3333, allocations: 248.8 kB / 439 MB, free: 4.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3333, allocations: 0 / 439 MB, free: 4.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001019/0.3343, allocations: 422.2 kB / 439.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.3344, allocations: 6.25 kB / 439.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.3344, allocations: 6.25 kB / 439.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004898/0.3349, allocations: 115.3 kB / 439.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.335, allocations: 41.61 kB / 439.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003562/0.3386, allocations: 3.569 MB / 443.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.3388, allocations: 42.12 kB / 443.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.3388, allocations: 8.719 kB / 443.2 MB, free: 1.109 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.0001362/0.339, allocations: 152 kB / 443.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.339, allocations: 30.41 kB / 443.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.3391, allocations: 37.58 kB / 443.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3391, allocations: 2.344 kB / 443.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3391, allocations: 0.7969 kB / 443.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3391, allocations: 2.266 kB / 443.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.3395, allocations: 368.6 kB / 443.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3395, allocations: 7.875 kB / 443.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.984e-05/0.3395, allocations: 17.53 kB / 443.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000354/0.3399, allocations: 115.8 kB / 443.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.3399, allocations: 5.859 kB / 443.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003899/0.3438, allocations: 3.468 MB / 447.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3438, allocations: 0 / 447.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009747/0.3448, allocations: 435.4 kB / 447.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.3449, allocations: 106.9 kB / 447.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.3449, allocations: 1.516 kB / 447.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.3452, allocations: 25.56 kB / 447.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.3452, allocations: 21.33 kB / 447.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.3452, allocations: 8.188 kB / 447.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002697/0.3455, allocations: 222.1 kB / 448.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3455, allocations: 0 / 448.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005448/0.3461, allocations: 98.34 kB / 448.3 MB, free: 12.97 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.001357/0.3474, allocations: 0.9722 MB / 449.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.3487, allocations: 0.5037 MB / 449.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3487, allocations: 0.875 kB / 449.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.3492, allocations: 338.5 kB / 450.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.3496, allocations: 55.17 kB / 450.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00547/0.3551, allocations: 3.251 MB / 453.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.3555, allocations: 0.7792 MB / 454.1 MB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.3556, allocations: 29.14 kB / 454.2 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.3557, allocations: 96.86 kB / 454.3 MB, free: 8.77 MB / 366.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3558, allocations: 0 / 454.3 MB, free: 8.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04017/0.3959, allocations: 7.211 MB / 461.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.37, allocations: 7.156 kB / 461.5 MB, free: 6.734 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.699773866916075]