Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_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.001505/0.001505, allocations: 115.3 kB / 17.06 MB, free: 6 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.001775/0.001775, allocations: 196 kB / 18 MB, free: 5.078 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009746/0.0009747, allocations: 55.91 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2519, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004602/0.2566, allocations: 3.223 MB / 403.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.2582, allocations: 0.9585 MB / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.2584, allocations: 4 kB / 404.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000174/0.2586, allocations: 63.36 kB / 404.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003659/0.2589, allocations: 123 kB / 404.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.2592, allocations: 151.6 kB / 404.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004724/0.2597, allocations: 482 kB / 405.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.26, allocations: 127.2 kB / 405.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.2602, allocations: 183.3 kB / 405.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.2604, allocations: 211.1 kB / 405.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.344e-05/0.2605, allocations: 40 kB / 405.8 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.2606, allocations: 75.97 kB / 405.9 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.372e-05/0.2607, allocations: 99.66 kB / 406 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.2609, allocations: 218.9 kB / 406.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004814/0.2614, allocations: 496 kB / 406.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2614, allocations: 0 / 406.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2614, allocations: 0 / 406.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2614, allocations: 0 / 406.7 MB, free: 2.352 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.001257/0.2627, allocations: 0.7287 MB / 407.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.2628, allocations: 16.03 kB / 407.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.556e-05/0.2628, allocations: 66.72 kB / 407.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.015e-05/0.2629, allocations: 48.38 kB / 407.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000426/0.2634, allocations: 311.4 kB / 407.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.2634, allocations: 21.03 kB / 407.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.69e-05/0.2635, allocations: 44.27 kB / 407.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006017/0.2641, allocations: 353.1 kB / 408.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.2641, allocations: 7.938 kB / 408.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.2641, allocations: 19.98 kB / 408.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.2642, allocations: 11.94 kB / 408.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.2646, allocations: 230.5 kB / 408.5 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.2663, allocations: 1.166 MB / 409.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006123/0.2669, allocations: 275.5 kB / 409.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005103/0.2675, allocations: 217.9 kB / 410.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006848/0.2682, allocations: 1.117 MB / 411.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.2682, allocations: 34.8 kB / 411.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.2682, allocations: 0 / 411.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001291/0.2695, allocations: 0.5379 MB / 411.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.2696, allocations: 81.11 kB / 411.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.2699, allocations: 332.5 kB / 412.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.2699, allocations: 33.7 kB / 412.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.2701, allocations: 212.1 kB / 412.5 MB, free: 12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.934e-05/0.2701, allocations: 102.5 kB / 412.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.2702, allocations: 66.08 kB / 412.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2704, allocations: 350.7 kB / 413 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.2706, allocations: 104.7 kB / 413.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.2709, allocations: 185.8 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.2714, allocations: 296.3 kB / 413.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2714, allocations: 0 / 413.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007571/0.2721, allocations: 425.6 kB / 414 MB, free: 10.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.2722, allocations: 8 kB / 414 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2722, allocations: 3.938 kB / 414 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.2724, allocations: 72.75 kB / 414 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.2728, allocations: 79.89 kB / 414.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/0.2746, allocations: 1.962 MB / 416.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.2748, allocations: 43.61 kB / 416.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.2749, allocations: 12 kB / 416.1 MB, free: 8.098 MB / 334.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.000168/0.275, allocations: 155.3 kB / 416.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.2751, allocations: 31.62 kB / 416.3 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006978/0.2758, allocations: 334.2 kB / 416.6 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.2758, allocations: 4 kB / 416.7 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2758, allocations: 3.938 kB / 416.7 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.2759, allocations: 7.984 kB / 416.7 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004119/0.2763, allocations: 389.2 kB / 417 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2763, allocations: 0 / 417 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.2766, allocations: 55.95 kB / 417.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001863/0.2768, allocations: 56.81 kB / 417.2 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.2768, allocations: 8 kB / 417.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003844/0.2772, allocations: 0.6147 MB / 417.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2772, allocations: 0 / 417.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/0.2781, allocations: 0.52 MB / 418.3 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.4e-05/0.2782, allocations: 112.7 kB / 418.4 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.354e-05/0.2782, allocations: 8 kB / 418.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002587/0.2785, allocations: 19.98 kB / 418.4 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.2786, allocations: 15.97 kB / 418.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.2786, allocations: 8 kB / 418.5 MB, free: 5.641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.2788, allocations: 231.1 kB / 418.7 MB, free: 5.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2788, allocations: 4 kB / 418.7 MB, free: 5.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004459/0.2793, allocations: 115.8 kB / 418.8 MB, free: 5.301 MB / 334.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.001202/0.2805, allocations: 1.094 MB / 419.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008135/0.2813, allocations: 426.1 kB / 420.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2813, allocations: 0.5 kB / 420.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003393/0.2817, allocations: 147.8 kB / 420.5 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.282, allocations: 49.53 kB / 420.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004796/0.2869, allocations: 3.729 MB / 424.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.2872, allocations: 0.7912 MB / 425 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.2874, allocations: 38.95 kB / 425.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.2875, allocations: 123.4 kB / 425.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2876, allocations: 0 / 425.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03596/0.3235, allocations: 7.736 MB / 432.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.25, allocations: 11.92 kB / 432.9 MB, free: 7.156 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches