Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001523/0.001523, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001951/0.001951, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 64 kB / 307.1 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1025, allocations: 50.54 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004266/0.1068, allocations: 2.942 MB / 360.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.1083, allocations: 0.7634 MB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002576/0.1086, allocations: 4 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.1088, allocations: 51.5 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000283/0.1091, allocations: 99.17 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.1094, allocations: 115.8 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004882/0.1099, allocations: 422.4 kB / 362 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002795/0.1102, allocations: 127.2 kB / 362.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002394/0.1105, allocations: 159.4 kB / 362.3 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.1107, allocations: 171.3 kB / 362.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.708e-05/0.1108, allocations: 40 kB / 362.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.914e-05/0.1109, allocations: 44 kB / 362.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.44e-05/0.111, allocations: 83.69 kB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.1112, allocations: 171.2 kB / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005232/0.1117, allocations: 450.7 kB / 363.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1117, allocations: 0 / 363.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1118, allocations: 0 / 363.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.1118, allocations: 0 / 363.2 MB, free: 8.332 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.001423/0.1132, allocations: 0.677 MB / 363.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1133, allocations: 8.031 kB / 363.9 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.213e-05/0.1133, allocations: 58.73 kB / 363.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.307e-05/0.1134, allocations: 36.56 kB / 364 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.1138, allocations: 303.5 kB / 364.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.1139, allocations: 20.94 kB / 364.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.1139, allocations: 24.38 kB / 364.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000754/0.1147, allocations: 327.8 kB / 364.6 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.1147, allocations: 0 / 364.6 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.1147, allocations: 19.88 kB / 364.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.1148, allocations: 8 kB / 364.7 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008492/0.1156, allocations: 278.1 kB / 364.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.1176, allocations: 1.158 MB / 366.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008912/0.1185, allocations: 246.6 kB / 366.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003557/0.1189, allocations: 112.7 kB / 366.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.119, allocations: 0 / 366.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000575/0.1195, allocations: 181.8 kB / 366.6 MB, free: 4.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.004e-06/0.1196, allocations: 4 kB / 366.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002622/0.1222, allocations: 0.6666 MB / 367.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.1223, allocations: 106.8 kB / 367.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003766/0.1227, allocations: 282.6 kB / 367.7 MB, free: 3.562 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.1227, allocations: 29.7 kB / 367.7 MB, free: 3.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.1229, allocations: 203.6 kB / 367.9 MB, free: 3.324 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.129e-05/0.123, allocations: 43.36 kB / 367.9 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.1231, allocations: 45.94 kB / 368 MB, free: 3.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1232, allocations: 338.8 kB / 368.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003896/0.1236, allocations: 108.6 kB / 368.4 MB, free: 2.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004468/0.1241, allocations: 208.8 kB / 368.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008186/0.1249, allocations: 310.7 kB / 368.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1249, allocations: 0 / 368.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001371/0.1263, allocations: 479.5 kB / 369.4 MB, free: 1.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.1264, allocations: 29.7 kB / 369.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1264, allocations: 4 kB / 369.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004224/0.1268, allocations: 88.86 kB / 369.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/0.1271, allocations: 43.91 kB / 369.6 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1794/0.3065, allocations: 1.989 MB / 371.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.307, allocations: 56.17 kB / 371.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.307, allocations: 13.28 kB / 371.6 MB, free: 18.98 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.0001481/0.3072, allocations: 158 kB / 371.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.284e-05/0.3072, allocations: 23.08 kB / 371.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.305e-05/0.3073, allocations: 27.55 kB / 371.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3073, allocations: 2 kB / 371.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.3073, allocations: 0.5156 kB / 371.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3073, allocations: 2.25 kB / 371.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002768/0.3076, allocations: 322.3 kB / 372.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3076, allocations: 3.656 kB / 372.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.3077, allocations: 25.05 kB / 372.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003156/0.3081, allocations: 79.81 kB / 372.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.3081, allocations: 5.391 kB / 372.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.3102, allocations: 1.805 MB / 374.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3102, allocations: 0.7031 kB / 374.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.3113, allocations: 374.1 kB / 374.4 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.449e-05/0.3114, allocations: 101.3 kB / 374.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.3114, allocations: 9.656 kB / 374.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.3117, allocations: 34.59 kB / 374.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.217e-05/0.3118, allocations: 17.91 kB / 374.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.3118, allocations: 6.141 kB / 374.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.3121, allocations: 202.6 kB / 374.8 MB, free: 17.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3121, allocations: 0 / 374.8 MB, free: 17.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004158/0.3125, allocations: 77.03 kB / 374.9 MB, free: 17.07 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.001345/0.3138, allocations: 0.9035 MB / 375.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.3149, allocations: 444.1 kB / 376.2 MB, free: 16.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.315, allocations: 2.375 kB / 376.2 MB, free: 16.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004805/0.3154, allocations: 234.7 kB / 376.4 MB, free: 16.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.3158, allocations: 54.41 kB / 376.5 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005346/0.3212, allocations: 3.122 MB / 379.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.3214, allocations: 0.7544 MB / 380.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.3216, allocations: 31.81 kB / 380.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.3217, allocations: 79.17 kB / 380.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3217, allocations: 0 / 380.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03492/0.3566, allocations: 6.775 MB / 387.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.53, allocations: 12.84 kB / 387.3 MB, free: 11.85 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches