Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",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.001114/0.001114, allocations: 105.4 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.001185/0.001185, 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.382/1.382, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 50.77 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1019, allocations: 49.44 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00456/0.1065, allocations: 2.925 MB / 353.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.108, allocations: 0.7324 MB / 353.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002624/0.1083, allocations: 8 kB / 353.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.1086, allocations: 47.5 kB / 353.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003101/0.1089, allocations: 99.17 kB / 354 MB, free: 472 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.1093, allocations: 115.8 kB / 354.1 MB, free: 356 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005356/0.1098, allocations: 422.4 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.1101, allocations: 127.2 kB / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/0.1103, allocations: 151.4 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002387/0.1106, allocations: 171.3 kB / 355 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.659e-05/0.1107, allocations: 40 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.906e-05/0.1108, allocations: 47.94 kB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.622e-05/0.1109, allocations: 75.77 kB / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.1111, allocations: 183.1 kB / 355.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004531/0.1115, allocations: 446.8 kB / 355.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1115, allocations: 3.984 kB / 355.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1116, allocations: 0 / 355.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.1116, allocations: 3.938 kB / 355.7 MB, free: 14.71 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001422/0.113, allocations: 0.677 MB / 356.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.113, allocations: 8.031 kB / 356.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.071e-05/0.1131, allocations: 58.73 kB / 356.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.777e-05/0.1132, allocations: 32.56 kB / 356.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.1136, allocations: 299.5 kB / 356.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.1137, allocations: 20.94 kB / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.197e-05/0.1137, allocations: 28.38 kB / 356.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000773/0.1145, allocations: 323.8 kB / 357.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1145, allocations: 0 / 357.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.1146, allocations: 15.98 kB / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1146, allocations: 4 kB / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008516/0.1154, allocations: 290 kB / 357.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001925/0.1174, allocations: 1.162 MB / 358.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008568/0.1182, allocations: 246.6 kB / 358.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003558/0.1186, allocations: 108.8 kB / 359 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.1186, allocations: 4 kB / 359 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005532/0.1192, allocations: 188.8 kB / 359.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.854e-06/0.1192, allocations: 0 / 359.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002431/0.1217, allocations: 0.659 MB / 359.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.1217, allocations: 110.8 kB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.1221, allocations: 278.6 kB / 360.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.1221, allocations: 33.7 kB / 360.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.1222, allocations: 195.7 kB / 360.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.969e-05/0.1223, allocations: 47.44 kB / 360.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.161e-05/0.1224, allocations: 49.84 kB / 360.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1225, allocations: 326.8 kB / 360.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003962/0.123, allocations: 112.4 kB / 361 MB, free: 9.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004301/0.1234, allocations: 206 kB / 361.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007894/0.1242, allocations: 303.8 kB / 361.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1242, allocations: 4 kB / 361.5 MB, free: 8.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001423/0.1256, allocations: 475.5 kB / 361.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.112e-05/0.1257, allocations: 33.7 kB / 362 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.1257, allocations: 4 kB / 362 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003996/0.1261, allocations: 88.86 kB / 362 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.1264, allocations: 43.91 kB / 362.1 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00284/0.1292, allocations: 1.997 MB / 364.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.1296, allocations: 47.72 kB / 364.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.1296, allocations: 16.16 kB / 364.1 MB, free: 5.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.1298, allocations: 165.7 kB / 364.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.1299, allocations: 23.66 kB / 364.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.094e-05/0.1299, allocations: 29.89 kB / 364.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1299, allocations: 3.938 kB / 364.4 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1299, allocations: 0 / 364.4 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.1299, allocations: 4 kB / 364.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000367/0.1303, allocations: 321.4 kB / 364.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1303, allocations: 0 / 364.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001515/0.1305, allocations: 24.09 kB / 364.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/0.1308, allocations: 88.73 kB / 364.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.1308, allocations: 8 kB / 364.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002455/0.1333, allocations: 1.805 MB / 366.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1333, allocations: 0 / 366.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.1345, allocations: 365.5 kB / 367 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.262e-05/0.1346, allocations: 100.8 kB / 367.1 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.919e-05/0.1347, allocations: 11.94 kB / 367.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002664/0.1349, allocations: 35.95 kB / 367.1 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.889e-05/0.135, allocations: 20.17 kB / 367.1 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.135, allocations: 7.938 kB / 367.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.1353, allocations: 202 kB / 367.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1353, allocations: 0 / 367.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004039/0.1357, allocations: 83.75 kB / 367.4 MB, free: 2.223 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001485/0.1372, allocations: 0.9047 MB / 368.3 MB, free: 1.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.1383, allocations: 434.3 kB / 368.7 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.1383, allocations: 4.125 kB / 368.7 MB, free: 0.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000521/0.1388, allocations: 234.5 kB / 369 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.1392, allocations: 59.12 kB / 369 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1563/0.2956, allocations: 3.11 MB / 372.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.2958, allocations: 0.7596 MB / 372.9 MB, free: 23.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.2959, allocations: 23.02 kB / 372.9 MB, free: 23.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.2961, allocations: 80.94 kB / 373 MB, free: 23.55 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2961, allocations: 0 / 373 MB, free: 23.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/0.3241, allocations: 6.75 MB / 379.8 MB, free: 22.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.82, allocations: 5 kB / 379.8 MB, free: 22.54 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_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_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches