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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001058, allocations: 51.02 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1025, allocations: 49.44 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004942/0.1075, allocations: 3.353 MB / 353.5 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.1091, allocations: 0.8103 MB / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003244/0.1095, allocations: 8 kB / 354.4 MB, free: 104 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002505/0.1097, allocations: 63.36 kB / 354.4 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003667/0.1101, allocations: 126.9 kB / 354.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.1105, allocations: 131.8 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005461/0.1111, allocations: 0.4903 MB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003015/0.1114, allocations: 180.9 kB / 355.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/0.1117, allocations: 183.3 kB / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002822/0.112, allocations: 195.2 kB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.726e-05/0.1121, allocations: 52 kB / 355.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.367e-05/0.1122, allocations: 48 kB / 355.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.942e-05/0.1123, allocations: 99.69 kB / 355.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.1125, allocations: 218.9 kB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004965/0.113, allocations: 0.5609 MB / 356.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.113, allocations: 0 / 356.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.113, allocations: 4 kB / 356.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.807e-05/0.113, allocations: 0 / 356.7 MB, free: 13.77 MB / 302.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.001287/0.1143, allocations: 0.698 MB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.1144, allocations: 12.03 kB / 357.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.926e-05/0.1145, allocations: 70.72 kB / 357.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.419e-05/0.1146, allocations: 40.47 kB / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.115, allocations: 312.7 kB / 357.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.1151, allocations: 29.31 kB / 357.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.105e-05/0.1151, allocations: 47.88 kB / 357.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.1158, allocations: 386.1 kB / 358.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1159, allocations: 4 kB / 358.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.1159, allocations: 12 kB / 358.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1159, allocations: 12 kB / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006721/0.1166, allocations: 299.9 kB / 358.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.119, allocations: 1.443 MB / 360 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006529/0.1196, allocations: 234.8 kB / 360.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.1199, allocations: 96.81 kB / 360.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.1199, allocations: 4 kB / 360.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.1199, allocations: 38.5 kB / 360.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.1199, allocations: 0 / 360.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002414/0.1224, allocations: 0.7581 MB / 361.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.1224, allocations: 59.33 kB / 361.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.1228, allocations: 311.4 kB / 361.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.1228, allocations: 29.7 kB / 361.5 MB, free: 8.605 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.123, allocations: 231.6 kB / 361.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.123, allocations: 59.19 kB / 361.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.595e-05/0.1231, allocations: 49.61 kB / 361.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1233, allocations: 338.8 kB / 362.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.1235, allocations: 83.95 kB / 362.3 MB, free: 7.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.1238, allocations: 165.8 kB / 362.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004557/0.1243, allocations: 237.3 kB / 362.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1243, allocations: 0 / 362.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001074/0.1253, allocations: 433.7 kB / 363.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.1254, allocations: 4 kB / 363.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1254, allocations: 4 kB / 363.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004885/0.1259, allocations: 113.7 kB / 363.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.1261, allocations: 43.91 kB / 363.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004412/0.1305, allocations: 3.564 MB / 366.8 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.1309, allocations: 39.61 kB / 366.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.1309, allocations: 8 kB / 366.9 MB, free: 2.887 MB / 302.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.000263/0.1312, allocations: 157.7 kB / 367 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.625e-05/0.1313, allocations: 39.61 kB / 367.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.457e-05/0.1314, allocations: 30.31 kB / 367.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.1314, allocations: 7.984 kB / 367.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1314, allocations: 0 / 367.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.1314, allocations: 0 / 367.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004843/0.1319, allocations: 357.4 kB / 367.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1319, allocations: 0 / 367.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.057e-05/0.132, allocations: 19.92 kB / 367.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004104/0.1324, allocations: 125.7 kB / 367.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.1325, allocations: 3.938 kB / 367.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1814/0.3139, allocations: 3.465 MB / 371.1 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3139, allocations: 0 / 371.1 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.3153, allocations: 436.9 kB / 371.5 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.3154, allocations: 108.6 kB / 371.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.046e-05/0.3155, allocations: 4.969 kB / 371.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/0.3159, allocations: 21 kB / 371.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.972e-05/0.3159, allocations: 16.55 kB / 371.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.316, allocations: 7.625 kB / 371.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003028/0.3163, allocations: 227.9 kB / 371.9 MB, free: 23.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3163, allocations: 0 / 371.9 MB, free: 23.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006137/0.3169, allocations: 97.45 kB / 372 MB, free: 23.68 MB / 302.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.001504/0.3184, allocations: 0.9635 MB / 372.9 MB, free: 23.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.3196, allocations: 0.5143 MB / 373.4 MB, free: 22.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3196, allocations: 0.9062 kB / 373.4 MB, free: 22.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003928/0.32, allocations: 346 kB / 373.8 MB, free: 22.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005227/0.3206, allocations: 55.55 kB / 373.8 MB, free: 22.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004995/0.3256, allocations: 3.262 MB / 377.1 MB, free: 20.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.3259, allocations: 0.7819 MB / 377.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.3261, allocations: 25.98 kB / 377.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.3263, allocations: 97.16 kB / 378 MB, free: 19.87 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3263, allocations: 3.938 kB / 378 MB, free: 19.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08472/0.411, allocations: 6.971 MB / 385 MB, free: 18.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.49, allocations: 16.36 kB / 385 MB, free: 18.32 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv","/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) Reference file matches