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.001768/0.001769, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001498/0.001498, allocations: 179.1 kB / 18.66 MB, free: 4.434 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.865/1.865, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001871/0.001871, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1325, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005804/0.1384, allocations: 3.191 MB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002202/0.1406, allocations: 0.9981 MB / 378.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001925/0.1408, allocations: 4 kB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.1411, allocations: 63.42 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005278/0.1416, allocations: 118.9 kB / 379 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.142, allocations: 143.7 kB / 379.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006732/0.1427, allocations: 497.8 kB / 379.7 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2988/0.4415, allocations: 130.9 kB / 379.8 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004893/0.442, allocations: 187.6 kB / 380 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003723/0.4424, allocations: 210.3 kB / 380.2 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.139e-05/0.4425, allocations: 42.81 kB / 380.2 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.4427, allocations: 70.5 kB / 380.3 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.4428, allocations: 94.55 kB / 380.4 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.443, allocations: 215.7 kB / 380.6 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007724/0.4438, allocations: 0.496 MB / 381.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.4438, allocations: 1.938 kB / 381.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4438, allocations: 0 / 381.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.4438, allocations: 0 / 381.1 MB, free: 9.164 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.00143/0.4453, allocations: 0.7485 MB / 381.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.02e-05/0.4454, allocations: 12.94 kB / 381.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.4455, allocations: 66.78 kB / 381.9 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.4456, allocations: 47.81 kB / 382 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005472/0.4462, allocations: 307.2 kB / 382.3 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.4462, allocations: 22.5 kB / 382.3 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-05/0.4463, allocations: 40.97 kB / 382.3 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008807/0.4472, allocations: 351.6 kB / 382.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.4472, allocations: 0.5625 kB / 382.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.432e-05/0.4473, allocations: 13.88 kB / 382.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/0.4473, allocations: 7.469 kB / 382.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006896/0.448, allocations: 235.1 kB / 382.9 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00233/0.4503, allocations: 1.186 MB / 384.1 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008209/0.4512, allocations: 277.5 kB / 384.4 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005883/0.4518, allocations: 212 kB / 384.6 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000672/0.4524, allocations: 1.117 MB / 385.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.4525, allocations: 38.67 kB / 385.7 MB, free: 6.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.013e-06/0.4525, allocations: 0 / 385.7 MB, free: 6.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.001551/0.4541, allocations: 0.5361 MB / 386.3 MB, free: 6.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.4541, allocations: 81.36 kB / 386.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.4547, allocations: 335.6 kB / 386.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.4547, allocations: 36.14 kB / 386.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.4549, allocations: 211.2 kB / 386.9 MB, free: 5.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.005e-05/0.455, allocations: 107.1 kB / 387 MB, free: 5.664 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.4551, allocations: 70.91 kB / 387.1 MB, free: 5.617 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4552, allocations: 350.6 kB / 387.4 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003192/0.4556, allocations: 105.6 kB / 387.5 MB, free: 5.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003466/0.4559, allocations: 188.2 kB / 387.7 MB, free: 5.125 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005945/0.4565, allocations: 288.5 kB / 388 MB, free: 4.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/0.4565, allocations: 1.188 kB / 388 MB, free: 4.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009553/0.4575, allocations: 437.3 kB / 388.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.4576, allocations: 6.375 kB / 388.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.4576, allocations: 6.375 kB / 388.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004001/0.458, allocations: 66.83 kB / 388.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/0.4584, allocations: 76.62 kB / 388.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/0.4606, allocations: 1.966 MB / 390.5 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/0.4609, allocations: 47.83 kB / 390.6 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.461, allocations: 11.38 kB / 390.6 MB, free: 2.977 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.0002026/0.4612, allocations: 153.1 kB / 390.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.4614, allocations: 41.61 kB / 390.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008543/0.4622, allocations: 332.9 kB / 391.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.4623, allocations: 6.688 kB / 391.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.4623, allocations: 3.938 kB / 391.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.4623, allocations: 2.688 kB / 391.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006801/0.463, allocations: 392.5 kB / 391.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.463, allocations: 0.6094 kB / 391.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.4633, allocations: 57.55 kB / 391.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003079/0.4637, allocations: 61.31 kB / 391.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.4637, allocations: 7.734 kB / 391.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004303/0.4641, allocations: 0.6078 MB / 392.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4641, allocations: 1.188 kB / 392.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.4653, allocations: 0.5242 MB / 392.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.4655, allocations: 132.2 kB / 392.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.214e-05/0.4656, allocations: 7.344 kB / 392.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.4658, allocations: 23.78 kB / 392.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-05/0.4659, allocations: 18.55 kB / 392.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.466, allocations: 9.984 kB / 393 MB, free: 1.359 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003622/0.4663, allocations: 240.7 kB / 393.2 MB, free: 1.227 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4663, allocations: 0 / 393.2 MB, free: 1.227 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005347/0.4669, allocations: 111.2 kB / 393.3 MB, free: 1.203 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.001409/0.4683, allocations: 1.094 MB / 394.4 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.4693, allocations: 420.7 kB / 394.8 MB, free: 168 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/0.4694, allocations: 0 / 394.8 MB, free: 168 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003689/0.4697, allocations: 140.7 kB / 394.9 MB, free: 136 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.4702, allocations: 42.94 kB / 395 MB, free: 112 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007109/0.4773, allocations: 3.765 MB / 398.8 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006409/0.478, allocations: 0.7945 MB / 399.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001961/0.4782, allocations: 38.48 kB / 399.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000258/0.4785, allocations: 129.9 kB / 399.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of SimCode: time 3.626e-06/0.4785, allocations: 0 / 399.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05077/0.5293, allocations: 7.745 MB / 407.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.86, allocations: 14.61 kB / 407.5 MB, free: 10.36 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