Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",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.001494/0.001494, 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.001607/0.001607, 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.57/1.57, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001093, allocations: 46.83 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09763, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005863/0.1035, allocations: 4.44 MB / 354.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.1059, allocations: 1.219 MB / 355.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004655/0.1064, allocations: 8 kB / 355.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005191/0.107, allocations: 142.8 kB / 356 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000637/0.1076, allocations: 202.2 kB / 356.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005464/0.1082, allocations: 199.6 kB / 356.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009306/0.1091, allocations: 0.7475 MB / 357.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004703/0.1096, allocations: 262.5 kB / 357.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000442/0.1101, allocations: 294.9 kB / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004709/0.1106, allocations: 322.5 kB / 358 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.1107, allocations: 67.94 kB / 358.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.1108, allocations: 64 kB / 358.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.111, allocations: 147.5 kB / 358.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003555/0.1114, allocations: 342.3 kB / 358.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007232/0.1121, allocations: 0.7359 MB / 359.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1121, allocations: 0 / 359.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1121, allocations: 0 / 359.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.664e-05/0.1121, allocations: 0 / 359.3 MB, free: 11.1 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.00194/0.1141, allocations: 0.9509 MB / 360.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1141, allocations: 8.031 kB / 360.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.1143, allocations: 98.7 kB / 360.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.1144, allocations: 76.08 kB / 360.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005284/0.1149, allocations: 405.9 kB / 360.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.788e-05/0.115, allocations: 45.62 kB / 360.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-05/0.1151, allocations: 52.38 kB / 360.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009926/0.1161, allocations: 0.5534 MB / 361.5 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.1161, allocations: 0 / 361.5 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.92e-05/0.1162, allocations: 20 kB / 361.5 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.1162, allocations: 16 kB / 361.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008773/0.1171, allocations: 421 kB / 361.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002994/0.1201, allocations: 1.84 MB / 363.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008309/0.1209, allocations: 0.5242 MB / 364.3 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009687/0.1219, allocations: 437 kB / 364.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.1219, allocations: 4.328 kB / 364.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005257/0.1225, allocations: 305.9 kB / 365 MB, free: 5.105 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.254e-06/0.1225, allocations: 0 / 365 MB, free: 5.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.004135/0.1266, allocations: 1.294 MB / 366.3 MB, free: 3.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000184/0.1268, allocations: 251.3 kB / 366.6 MB, free: 3.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005918/0.1274, allocations: 433.7 kB / 367 MB, free: 3.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.051e-05/0.1275, allocations: 37.7 kB / 367 MB, free: 3.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.1278, allocations: 304.1 kB / 367.3 MB, free: 2.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.1279, allocations: 142 kB / 367.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.1281, allocations: 94.16 kB / 367.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1282, allocations: 350.8 kB / 367.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000358/0.1286, allocations: 157 kB / 368.1 MB, free: 1.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004714/0.1291, allocations: 321.6 kB / 368.4 MB, free: 1.574 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007919/0.1299, allocations: 443.5 kB / 368.8 MB, free: 1.094 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.1299, allocations: 3.938 kB / 368.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001868/0.1318, allocations: 0.7867 MB / 369.6 MB, free: 300 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.1318, allocations: 8 kB / 369.6 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1318, allocations: 0 / 369.6 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007105/0.1325, allocations: 220.7 kB / 369.8 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1576/0.2902, allocations: 73.28 kB / 369.9 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004937/0.2951, allocations: 3.121 MB / 373 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005347/0.2957, allocations: 82.47 kB / 373.1 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.2957, allocations: 19.62 kB / 373.1 MB, free: 23.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.000215/0.296, allocations: 183.7 kB / 373.3 MB, free: 23.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.296, allocations: 49.17 kB / 373.3 MB, free: 23.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.841e-05/0.2961, allocations: 54.44 kB / 373.4 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.2961, allocations: 3 kB / 373.4 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2961, allocations: 1.875 kB / 373.4 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.2962, allocations: 2.812 kB / 373.4 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.2984, allocations: 1.282 MB / 374.7 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2984, allocations: 3.844 kB / 374.7 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.2986, allocations: 32.06 kB / 374.7 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005974/0.2992, allocations: 221.8 kB / 374.9 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.2992, allocations: 11.89 kB / 375 MB, free: 22.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/0.3031, allocations: 3.057 MB / 378 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3031, allocations: 3.938 kB / 378 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.305, allocations: 0.9313 MB / 378.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.459e-05/0.3051, allocations: 126.1 kB / 379.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.762e-05/0.3052, allocations: 11.48 kB / 379.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003811/0.3056, allocations: 46.31 kB / 379.1 MB, free: 20.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.073e-05/0.3057, allocations: 36.23 kB / 379.2 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.3057, allocations: 12.98 kB / 379.2 MB, free: 20.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003195/0.306, allocations: 300.6 kB / 379.5 MB, free: 19.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.306, allocations: 1.188 kB / 379.5 MB, free: 19.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006657/0.3067, allocations: 190.3 kB / 379.7 MB, free: 19.94 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002138/0.3088, allocations: 1.485 MB / 381.1 MB, free: 18.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.3104, allocations: 0.6825 MB / 381.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3105, allocations: 1.094 kB / 381.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006864/0.3111, allocations: 420.6 kB / 382.2 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005124/0.3117, allocations: 81.78 kB / 382.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007177/0.3189, allocations: 5.029 MB / 387.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.3192, allocations: 0.8649 MB / 388.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.3194, allocations: 51.81 kB / 388.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.3196, allocations: 183.2 kB / 388.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3196, allocations: 0.9375 kB / 388.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.3525, allocations: 12.04 MB / 400.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.36, allocations: 9.281 kB / 400.5 MB, free: 7.207 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches