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.001197/0.001197, allocations: 117.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, 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.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 59.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2623, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.003983/0.2663, allocations: 3.263 MB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.2679, allocations: 1.009 MB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.2681, allocations: 8 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.2683, allocations: 59.42 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003373/0.2687, allocations: 126.9 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.269, allocations: 155.6 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004441/0.2694, allocations: 490 kB / 413.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.2697, allocations: 131.1 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.2699, allocations: 191.3 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.2702, allocations: 219 kB / 414.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.2702, allocations: 40 kB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.2704, allocations: 75.97 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.877e-05/0.2705, allocations: 91.69 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001964/0.2707, allocations: 218.9 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005121/0.2712, allocations: 0.5008 MB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2712, allocations: 0 / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2712, allocations: 0 / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.2712, allocations: 0 / 415.3 MB, free: 10.95 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.001236/0.2725, allocations: 0.7438 MB / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2725, allocations: 8.031 kB / 416.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.591e-05/0.2726, allocations: 70.72 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.2728, allocations: 60.64 kB / 416.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.2732, allocations: 319.5 kB / 416.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.2732, allocations: 21.03 kB / 416.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.881e-05/0.2733, allocations: 36.38 kB / 416.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005926/0.2739, allocations: 357 kB / 416.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2739, allocations: 4 kB / 416.9 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.274, allocations: 12 kB / 416.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.274, allocations: 8 kB / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/0.2745, allocations: 238.5 kB / 417.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.2763, allocations: 1.17 MB / 418.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006317/0.277, allocations: 283.5 kB / 418.6 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004812/0.2775, allocations: 217.2 kB / 418.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007338/0.2782, allocations: 1.109 MB / 419.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.2782, allocations: 38.8 kB / 420 MB, free: 5.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.2783, allocations: 4 kB / 420 MB, free: 5.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001358/0.2796, allocations: 0.5367 MB / 420.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.636e-05/0.2797, allocations: 77.11 kB / 420.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.2801, allocations: 337.7 kB / 420.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.2801, allocations: 33.7 kB / 420.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.2803, allocations: 224.4 kB / 421.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.81e-05/0.2804, allocations: 95.12 kB / 421.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.2805, allocations: 78.02 kB / 421.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2806, allocations: 350.7 kB / 421.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.2809, allocations: 104.7 kB / 421.8 MB, free: 3.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.2811, allocations: 178 kB / 422 MB, free: 3.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004757/0.2816, allocations: 291.6 kB / 422.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2816, allocations: 0 / 422.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007728/0.2824, allocations: 434 kB / 422.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.2824, allocations: 8 kB / 422.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2825, allocations: 0 / 422.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002784/0.2827, allocations: 68.75 kB / 422.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/0.2831, allocations: 83.89 kB / 422.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/0.285, allocations: 1.947 MB / 424.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.2853, allocations: 47.75 kB / 424.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.2853, allocations: 12 kB / 424.8 MB, free: 0.6719 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.0001954/0.2855, allocations: 161.1 kB / 425 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.856e-05/0.2856, allocations: 35.77 kB / 425 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007071/0.2863, allocations: 330.3 kB / 425.3 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.2863, allocations: 7.938 kB / 425.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2863, allocations: 3.938 kB / 425.3 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.2863, allocations: 3.984 kB / 425.4 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004775/0.2868, allocations: 393.3 kB / 425.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.2868, allocations: 4 kB / 425.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003348/0.2872, allocations: 59.95 kB / 425.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002001/0.2874, allocations: 52.81 kB / 425.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.2874, allocations: 11.94 kB / 425.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004083/0.2878, allocations: 0.607 MB / 426.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2878, allocations: 8.016 kB / 426.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008861/0.2887, allocations: 0.525 MB / 427 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.821e-05/0.2888, allocations: 116.8 kB / 427.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.922e-05/0.2889, allocations: 8 kB / 427.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.2891, allocations: 19.98 kB / 427.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.2892, allocations: 15.97 kB / 427.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.2892, allocations: 8 kB / 427.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002325/0.2895, allocations: 239.2 kB / 427.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2895, allocations: 4 kB / 427.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004417/0.2899, allocations: 111.8 kB / 427.5 MB, free: 13.85 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.001298/0.2912, allocations: 1.085 MB / 428.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000843/0.2921, allocations: 414.4 kB / 429 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2921, allocations: 0 / 429 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003448/0.2925, allocations: 148.3 kB / 429.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.2929, allocations: 44.11 kB / 429.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005523/0.2984, allocations: 3.772 MB / 433 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.2988, allocations: 0.7912 MB / 433.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.299, allocations: 42.89 kB / 433.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.2991, allocations: 123.4 kB / 433.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2992, allocations: 0 / 433.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03395/0.3331, allocations: 7.778 MB / 441.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.33, allocations: 4.875 kB / 441.7 MB, free: 15.65 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.0.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