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.001538/0.001538, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001539, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 63.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2547, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004036/0.2588, allocations: 2.947 MB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.2604, allocations: 0.7557 MB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.2606, allocations: 4 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.2608, allocations: 51.5 kB / 412.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.261, allocations: 103.2 kB / 412.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.2613, allocations: 119.8 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000454/0.2617, allocations: 414.4 kB / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.262, allocations: 131.2 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.2622, allocations: 155.4 kB / 413.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.2624, allocations: 179.2 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.467e-05/0.2625, allocations: 40 kB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.731e-05/0.2626, allocations: 40 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.333e-05/0.2626, allocations: 79.7 kB / 413.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.2628, allocations: 171.2 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004755/0.2633, allocations: 453.3 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2633, allocations: 4 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2633, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.2633, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.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.00125/0.2646, allocations: 0.6845 MB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2646, allocations: 8.031 kB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.301e-05/0.2647, allocations: 58.73 kB / 415.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.929e-05/0.2648, allocations: 44.64 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.2652, allocations: 303.7 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.2653, allocations: 20.94 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.2653, allocations: 24.38 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006919/0.266, allocations: 331.8 kB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.266, allocations: 0 / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.2661, allocations: 8 kB / 415.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.2661, allocations: 8 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007903/0.2669, allocations: 286 kB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.2688, allocations: 1.151 MB / 417.3 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008026/0.2696, allocations: 250.5 kB / 417.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003109/0.2699, allocations: 104.7 kB / 417.7 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.2699, allocations: 11.98 kB / 417.7 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000451/0.2704, allocations: 173.9 kB / 417.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.2704, allocations: 0 / 417.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002215/0.2726, allocations: 0.6708 MB / 418.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/0.2727, allocations: 106.8 kB / 418.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003232/0.273, allocations: 286.6 kB / 418.9 MB, free: 7.121 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.2731, allocations: 25.7 kB / 418.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.2732, allocations: 204.1 kB / 419.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.445e-05/0.2733, allocations: 47.56 kB / 419.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.609e-05/0.2734, allocations: 53.92 kB / 419.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.2735, allocations: 331 kB / 419.5 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.2739, allocations: 104.4 kB / 419.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.2743, allocations: 216.7 kB / 419.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007006/0.275, allocations: 307.8 kB / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.275, allocations: 0 / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001206/0.2762, allocations: 479.6 kB / 420.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.2763, allocations: 36.36 kB / 420.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.2763, allocations: 4 kB / 420.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003604/0.2767, allocations: 88.86 kB / 420.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.2769, allocations: 47.89 kB / 420.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.2796, allocations: 1.99 MB / 422.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.2799, allocations: 55.88 kB / 422.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.28, allocations: 15.92 kB / 422.9 MB, free: 2.883 MB / 334.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.0001715/0.2801, allocations: 149.7 kB / 423 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.2802, allocations: 23.86 kB / 423 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.959e-05/0.2803, allocations: 29.83 kB / 423 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2803, allocations: 0 / 423 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.2803, allocations: 0 / 423 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.2803, allocations: 4 kB / 423.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003345/0.2806, allocations: 329.3 kB / 423.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2806, allocations: 3.984 kB / 423.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001365/0.2808, allocations: 23.92 kB / 423.4 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002691/0.281, allocations: 80.8 kB / 423.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.2811, allocations: 4 kB / 423.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002495/0.2836, allocations: 1.817 MB / 425.3 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2836, allocations: 0 / 425.3 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.2847, allocations: 377.1 kB / 425.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.585e-05/0.2848, allocations: 101 kB / 425.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.721e-05/0.2848, allocations: 7.984 kB / 425.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.2851, allocations: 27.97 kB / 425.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.296e-05/0.2852, allocations: 27.91 kB / 425.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.2852, allocations: 7.938 kB / 425.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002258/0.2854, allocations: 202 kB / 426 MB, free: 15.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2854, allocations: 0 / 426 MB, free: 15.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000391/0.2858, allocations: 75.89 kB / 426.1 MB, free: 15.37 MB / 350.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.001406/0.2872, allocations: 0.9019 MB / 427 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009987/0.2882, allocations: 441.8 kB / 427.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2882, allocations: 0 / 427.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004674/0.2887, allocations: 239.1 kB / 427.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.2891, allocations: 50.95 kB / 427.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005176/0.2942, allocations: 3.108 MB / 430.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.2947, allocations: 0.7558 MB / 431.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001157/0.2949, allocations: 30.27 kB / 431.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.295, allocations: 83.41 kB / 431.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.295, allocations: 0 / 431.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0361/0.3311, allocations: 6.896 MB / 438.6 MB, free: 2.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.85, allocations: 7.938 kB / 438.6 MB, free: 2.812 MB / 350.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.1.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