Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",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.001286/0.001286, allocations: 109.2 kB / 17.73 MB, free: 5.316 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.001109/0.001109, allocations: 188.2 kB / 18.66 MB, free: 4.387 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.704/1.704, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001372/0.001371, allocations: 55.94 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1216, allocations: 46.61 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005299/0.1269, allocations: 3.187 MB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002293/0.1292, allocations: 1.002 MB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004522/0.1298, allocations: 4 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002774/0.1301, allocations: 59.36 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007061/0.1308, allocations: 131 kB / 379 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000589/0.1314, allocations: 151.6 kB / 379.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007403/0.1322, allocations: 485.8 kB / 379.7 MB, free: 40 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2544/0.3866, allocations: 135.9 kB / 379.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005889/0.3873, allocations: 185.8 kB / 380 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003949/0.3877, allocations: 213.2 kB / 380.2 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.583e-05/0.3878, allocations: 39.31 kB / 380.2 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.388, allocations: 80.67 kB / 380.3 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.664e-05/0.3881, allocations: 90.64 kB / 380.4 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002164/0.3883, allocations: 214.5 kB / 380.6 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008408/0.3892, allocations: 0.4948 MB / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3892, allocations: 0 / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3892, allocations: 0 / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.3892, allocations: 0 / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001694/0.3909, allocations: 0.7498 MB / 381.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.391, allocations: 9.625 kB / 381.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.3911, allocations: 72.16 kB / 381.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.3913, allocations: 48.31 kB / 382 MB, free: 8.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005558/0.3918, allocations: 307.8 kB / 382.3 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.77e-05/0.3919, allocations: 28.59 kB / 382.3 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.82e-05/0.392, allocations: 33.92 kB / 382.3 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.393, allocations: 349.4 kB / 382.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.393, allocations: 0.5 kB / 382.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.321e-05/0.3931, allocations: 12.06 kB / 382.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.3931, allocations: 9.5 kB / 382.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007355/0.3939, allocations: 241 kB / 382.9 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002357/0.3962, allocations: 1.179 MB / 384.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000747/0.397, allocations: 280.9 kB / 384.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005764/0.3976, allocations: 213.5 kB / 384.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006127/0.3982, allocations: 1.117 MB / 385.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.3983, allocations: 33.47 kB / 385.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.074e-06/0.3983, allocations: 0 / 385.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.00166/0.4, allocations: 0.5371 MB / 386.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/0.4, allocations: 83.17 kB / 386.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004963/0.4005, allocations: 335.3 kB / 386.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.311e-05/0.4006, allocations: 31.52 kB / 386.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.4007, allocations: 222 kB / 386.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.412e-05/0.4008, allocations: 104.1 kB / 387 MB, free: 5.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.4009, allocations: 74.47 kB / 387.1 MB, free: 5.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.348e-05/0.4011, allocations: 345.8 kB / 387.4 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/0.4013, allocations: 106.2 kB / 387.5 MB, free: 5.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.4016, allocations: 187.9 kB / 387.7 MB, free: 5.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005605/0.4021, allocations: 288 kB / 388 MB, free: 4.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4022, allocations: 2.906 kB / 388 MB, free: 4.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009208/0.4031, allocations: 435 kB / 388.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.4031, allocations: 6.375 kB / 388.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4031, allocations: 2.188 kB / 388.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003063/0.4034, allocations: 72.47 kB / 388.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003499/0.4038, allocations: 78.92 kB / 388.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/0.4057, allocations: 1.959 MB / 390.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.406, allocations: 46.92 kB / 390.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.406, allocations: 18.72 kB / 390.6 MB, free: 2.941 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 36 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002136/0.4063, allocations: 150.4 kB / 390.8 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.4064, allocations: 36.67 kB / 390.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007538/0.4072, allocations: 333.6 kB / 391.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.4072, allocations: 3.375 kB / 391.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.4072, allocations: 3.938 kB / 391.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.4072, allocations: 1.875 kB / 391.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005615/0.4078, allocations: 392.2 kB / 391.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.4078, allocations: 1 kB / 391.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003506/0.4081, allocations: 60.81 kB / 391.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002666/0.4084, allocations: 61.73 kB / 391.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.4084, allocations: 8.547 kB / 391.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003536/0.4088, allocations: 0.601 MB / 392.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4088, allocations: 4.969 kB / 392.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009621/0.4098, allocations: 0.5213 MB / 392.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.4099, allocations: 132.5 kB / 392.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/0.41, allocations: 8 kB / 392.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.4103, allocations: 20.88 kB / 392.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.4104, allocations: 26.58 kB / 393 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.4104, allocations: 8.656 kB / 393 MB, free: 1.332 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002715/0.4107, allocations: 241.7 kB / 393.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4107, allocations: 0 / 393.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005266/0.4113, allocations: 112.3 kB / 393.3 MB, free: 1.176 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * 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 (20): * Single equations (assignments): 19 * 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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001339/0.4126, allocations: 1.092 MB / 394.4 MB, free: 352 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009357/0.4135, allocations: 423 kB / 394.8 MB, free: 136 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4136, allocations: 1.531 kB / 394.8 MB, free: 136 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003804/0.4139, allocations: 137.5 kB / 394.9 MB, free: 104 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.4144, allocations: 42.8 kB / 395 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006249/0.4206, allocations: 3.762 MB / 398.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/0.4212, allocations: 0.7894 MB / 399.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001925/0.4214, allocations: 41.62 kB / 399.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/0.4216, allocations: 127.1 kB / 399.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4216, allocations: 0 / 399.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0403/0.4619, allocations: 7.742 MB / 407.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/13.85, allocations: 10.09 kB / 407.5 MB, free: 10.33 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv --start-time 0 --stop-time 0.003 --timeout 50 --relative-tolerance 2e-07 --interface-type ModelExchange --solver CVode --output-interval 1.2e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches