Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",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.001306/0.001306, allocations: 100.3 kB / 17.58 MB, free: 5.418 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.001353/0.001353, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.297/1.297, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.86 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09433, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003821/0.09819, allocations: 2.754 MB / 330.1 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.09934, allocations: 0.6748 MB / 330.8 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.09948, allocations: 11.94 kB / 330.8 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.09966, allocations: 47.56 kB / 330.9 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000172/0.09984, allocations: 99.11 kB / 331 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002438/0.1001, allocations: 79.84 kB / 331 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.1005, allocations: 386.5 kB / 331.4 MB, free: 312 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.1007, allocations: 111 kB / 331.5 MB, free: 204 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.1009, allocations: 151.5 kB / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.1012, allocations: 167.2 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.695e-05/0.1012, allocations: 36 kB / 331.9 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.052e-05/0.1013, allocations: 32 kB / 331.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.935e-05/0.1014, allocations: 67.77 kB / 332 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.1015, allocations: 167.2 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003448/0.1019, allocations: 375 kB / 332.5 MB, free: 15.22 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1019, allocations: 0 / 332.5 MB, free: 15.22 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1019, allocations: 4 kB / 332.5 MB, free: 15.22 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.1019, allocations: 0 / 332.5 MB, free: 15.22 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001282/0.1032, allocations: 0.6536 MB / 333.2 MB, free: 14.51 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1032, allocations: 8.031 kB / 333.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.384e-05/0.1033, allocations: 58.72 kB / 333.2 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.895e-05/0.1034, allocations: 32.56 kB / 333.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.1037, allocations: 272.7 kB / 333.5 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.1038, allocations: 20.94 kB / 333.5 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.1038, allocations: 24.38 kB / 333.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006478/0.1044, allocations: 307.5 kB / 333.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1045, allocations: 0 / 333.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.1045, allocations: 12 kB / 333.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.1045, allocations: 4 kB / 333.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007693/0.1053, allocations: 253.5 kB / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.1069, allocations: 1.097 MB / 335.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007699/0.1077, allocations: 210.5 kB / 335.4 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003158/0.108, allocations: 92.8 kB / 335.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.108, allocations: 4 kB / 335.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005002/0.1085, allocations: 165.9 kB / 335.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.1086, allocations: 4 kB / 335.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.002059/0.1106, allocations: 0.5027 MB / 336.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.1107, allocations: 110.8 kB / 336.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.111, allocations: 286.5 kB / 336.6 MB, free: 10.84 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.111, allocations: 37.7 kB / 336.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.1112, allocations: 187.6 kB / 336.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.1112, allocations: 47.38 kB / 336.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/0.1113, allocations: 53.84 kB / 336.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1115, allocations: 330.8 kB / 337.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.1118, allocations: 96.09 kB / 337.3 MB, free: 10.08 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.1122, allocations: 210.1 kB / 337.5 MB, free: 9.824 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000696/0.1129, allocations: 302.6 kB / 337.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.1129, allocations: 4 kB / 337.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001189/0.1141, allocations: 427.6 kB / 338.2 MB, free: 9.043 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/0.1141, allocations: 37.69 kB / 338.3 MB, free: 9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.1142, allocations: 7.938 kB / 338.3 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003401/0.1145, allocations: 72.81 kB / 338.4 MB, free: 8.918 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.1147, allocations: 51.98 kB / 338.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002314/0.1171, allocations: 1.7 MB / 340.1 MB, free: 7.027 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.1174, allocations: 55.72 kB / 340.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.1175, allocations: 15.98 kB / 340.2 MB, free: 6.957 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.1176, allocations: 154.3 kB / 340.3 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.882e-05/0.1177, allocations: 23.72 kB / 340.4 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.754e-05/0.1177, allocations: 25.7 kB / 340.4 MB, free: 6.746 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1177, allocations: 4 kB / 340.4 MB, free: 6.742 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1177, allocations: 0 / 340.4 MB, free: 6.742 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1177, allocations: 3.938 kB / 340.4 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/0.118, allocations: 301.5 kB / 340.7 MB, free: 6.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.118, allocations: 4 kB / 340.7 MB, free: 6.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.1181, allocations: 19.98 kB / 340.7 MB, free: 6.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002495/0.1184, allocations: 68.8 kB / 340.8 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.1184, allocations: 4 kB / 340.8 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.1206, allocations: 1.703 MB / 342.5 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1206, allocations: 4.062 kB / 342.5 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.1216, allocations: 317.3 kB / 342.8 MB, free: 4.121 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.1217, allocations: 116.8 kB / 342.9 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.1218, allocations: 0 / 342.9 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002426/0.122, allocations: 28.16 kB / 342.9 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.072e-05/0.1221, allocations: 31.97 kB / 343 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.1221, allocations: 7.938 kB / 343 MB, free: 3.922 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001966/0.1223, allocations: 202 kB / 343.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1223, allocations: 0 / 343.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003572/0.1227, allocations: 79.84 kB / 343.2 MB, free: 3.645 MB / 286.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 (7): * Single equations (assignments): 4 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001315/0.124, allocations: 0.8547 MB / 344.1 MB, free: 2.754 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.125, allocations: 424 kB / 344.5 MB, free: 2.316 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1251, allocations: 0 / 344.5 MB, free: 2.316 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004316/0.1255, allocations: 214.6 kB / 344.7 MB, free: 2.094 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.1258, allocations: 41.44 kB / 344.8 MB, free: 2.055 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004899/0.1307, allocations: 3.015 MB / 347.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.131, allocations: 0.7556 MB / 348.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.1312, allocations: 26.3 kB / 348.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.1313, allocations: 79.41 kB / 348.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1313, allocations: 0 / 348.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.1587, allocations: 6.681 MB / 355.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.03, allocations: 15.62 kB / 355.3 MB, free: 7.219 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches