Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2557, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004301/0.26, allocations: 3.244 MB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.2618, allocations: 1.025 MB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.2619, allocations: 4 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.2621, allocations: 59.36 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003471/0.2625, allocations: 126.9 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.2628, allocations: 159.6 kB / 413.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004967/0.2633, allocations: 489.9 kB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.2636, allocations: 131.1 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.2639, allocations: 187.3 kB / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/0.2641, allocations: 211.1 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.742e-05/0.2642, allocations: 44 kB / 414.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.2644, allocations: 75.97 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.6e-05/0.2645, allocations: 99.59 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00022/0.2647, allocations: 211 kB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005811/0.2653, allocations: 0.5008 MB / 415.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2653, allocations: 0 / 415.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2653, allocations: 0 / 415.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.2653, allocations: 0 / 415.3 MB, free: 10.99 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001401/0.2667, allocations: 0.7515 MB / 416 MB, free: 10.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2668, allocations: 19.95 kB / 416.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.512e-05/0.2669, allocations: 66.73 kB / 416.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/0.2671, allocations: 56.64 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.2675, allocations: 315.5 kB / 416.5 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.2676, allocations: 29.03 kB / 416.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.47e-05/0.2676, allocations: 32.38 kB / 416.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006336/0.2683, allocations: 353.2 kB / 416.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2683, allocations: 0 / 416.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.2683, allocations: 15.98 kB / 416.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.2684, allocations: 8 kB / 416.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005007/0.2689, allocations: 234.5 kB / 417.2 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.2708, allocations: 1.167 MB / 418.3 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006574/0.2715, allocations: 291 kB / 418.6 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005052/0.272, allocations: 221.2 kB / 418.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009222/0.273, allocations: 1.109 MB / 419.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.328e-05/0.273, allocations: 42.8 kB / 420 MB, free: 5.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.583e-06/0.273, allocations: 0 / 420 MB, free: 5.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001341/0.2744, allocations: 0.525 MB / 420.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/0.2744, allocations: 85.11 kB / 420.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003857/0.2748, allocations: 337.7 kB / 420.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.2749, allocations: 29.7 kB / 420.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.2751, allocations: 216.4 kB / 421.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.783e-05/0.2752, allocations: 111.1 kB / 421.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.2753, allocations: 78.02 kB / 421.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.2755, allocations: 346.8 kB / 421.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.2757, allocations: 104.7 kB / 421.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.276, allocations: 186 kB / 422 MB, free: 3.754 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005013/0.2765, allocations: 283.6 kB / 422.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2765, allocations: 0 / 422.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000812/0.2774, allocations: 438 kB / 422.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2774, allocations: 4 kB / 422.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2774, allocations: 4 kB / 422.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002499/0.2776, allocations: 68.84 kB / 422.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.278, allocations: 79.89 kB / 422.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002124/0.2801, allocations: 1.955 MB / 424.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.2804, allocations: 35.73 kB / 424.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.794e-05/0.2804, allocations: 16.06 kB / 424.8 MB, free: 0.7109 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.0002053/0.2806, allocations: 165.6 kB / 425 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.517e-05/0.2807, allocations: 35.77 kB / 425 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007149/0.2815, allocations: 330.3 kB / 425.3 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.2815, allocations: 4 kB / 425.3 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.2815, allocations: 11.88 kB / 425.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2815, allocations: 0 / 425.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005069/0.282, allocations: 397.3 kB / 425.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.282, allocations: 0 / 425.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/0.2824, allocations: 55.89 kB / 425.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001843/0.2826, allocations: 60.81 kB / 425.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.2826, allocations: 8 kB / 425.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004706/0.2831, allocations: 0.6108 MB / 426.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2831, allocations: 0 / 426.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009289/0.284, allocations: 0.5251 MB / 427 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.776e-05/0.2841, allocations: 108.8 kB / 427.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.458e-05/0.2842, allocations: 11.94 kB / 427.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.2844, allocations: 19.98 kB / 427.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.439e-05/0.2845, allocations: 19.97 kB / 427.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.74e-05/0.2845, allocations: 4 kB / 427.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000288/0.2848, allocations: 247.2 kB / 427.4 MB, free: 14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2848, allocations: 0 / 427.4 MB, free: 14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004755/0.2853, allocations: 108 kB / 427.5 MB, free: 13.89 MB / 350.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.001382/0.2867, allocations: 1.093 MB / 428.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000857/0.2876, allocations: 410.4 kB / 429 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2876, allocations: 0.5 kB / 429 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004358/0.288, allocations: 147.8 kB / 429.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003868/0.2884, allocations: 45.36 kB / 429.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005156/0.2936, allocations: 3.772 MB / 433 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.2941, allocations: 0.7912 MB / 433.8 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.2943, allocations: 42.89 kB / 433.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.2945, allocations: 127.4 kB / 433.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2945, allocations: 0 / 433.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03601/0.3305, allocations: 7.778 MB / 441.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.62, allocations: 5 kB / 441.7 MB, free: 15.69 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable opAmp.v_source in file Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv. Warning: Get data of variable opAmp.v_source from file Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv failed! Error: Could not read variable opAmp.x in file Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv. Warning: Get data of variable opAmp.x from file Modelica_trunk_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv failed! " Variables in the reference:time,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x Variables in the result:time,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in