Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 115.9 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001846/0.001846, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 48.06 kB / 377.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2568, allocations: 53.36 MB / 431.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005837/0.2626, allocations: 4.525 MB / 435.7 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.2649, allocations: 1.281 MB / 437 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002443/0.2652, allocations: 19.94 kB / 437 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004206/0.2656, allocations: 164.3 kB / 437.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003883/0.266, allocations: 194.3 kB / 437.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000455/0.2665, allocations: 223.6 kB / 437.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007878/0.2672, allocations: 0.7592 MB / 438.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.2676, allocations: 198.9 kB / 438.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003937/0.268, allocations: 302.9 kB / 438.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004143/0.2684, allocations: 322.5 kB / 439.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.797e-05/0.2685, allocations: 64 kB / 439.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.2686, allocations: 72 kB / 439.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.2688, allocations: 151.4 kB / 439.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003076/0.2691, allocations: 346.3 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008171/0.2699, allocations: 0.7663 MB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2699, allocations: 0 / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2699, allocations: 0 / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.2699, allocations: 0 / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001731/0.2716, allocations: 0.9538 MB / 441.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.2717, allocations: 12.03 kB / 441.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.2718, allocations: 90.7 kB / 441.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002865/0.2721, allocations: 100.4 kB / 441.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005321/0.2726, allocations: 352.4 kB / 442 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.2726, allocations: 45.62 kB / 442.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.789e-05/0.2727, allocations: 56.12 kB / 442.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009633/0.2737, allocations: 0.5534 MB / 442.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.2737, allocations: 0 / 442.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.061e-05/0.2737, allocations: 28 kB / 442.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.2738, allocations: 12 kB / 442.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008581/0.2746, allocations: 421 kB / 443.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/0.2776, allocations: 1.782 MB / 444.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007426/0.2783, allocations: 353.6 kB / 445.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009845/0.2793, allocations: 421.1 kB / 445.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.2793, allocations: 8.266 kB / 445.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005347/0.2799, allocations: 294.2 kB / 446 MB, free: 7.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.453e-06/0.2799, allocations: 0 / 446 MB, free: 7.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.003426/0.2833, allocations: 1.11 MB / 447.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/0.2834, allocations: 235.3 kB / 447.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.284, allocations: 445.8 kB / 447.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.388e-05/0.2841, allocations: 37.7 kB / 447.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.2843, allocations: 312.8 kB / 448.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.2844, allocations: 150.8 kB / 448.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.2846, allocations: 86.19 kB / 448.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.2848, allocations: 362.7 kB / 448.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.2851, allocations: 148.9 kB / 448.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004777/0.2856, allocations: 324.8 kB / 449.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007525/0.2863, allocations: 439.4 kB / 449.5 MB, free: 4.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2863, allocations: 0 / 449.5 MB, free: 4.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001695/0.288, allocations: 0.7559 MB / 450.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2881, allocations: 8 kB / 450.3 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.2881, allocations: 7.938 kB / 450.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006096/0.2887, allocations: 176.8 kB / 450.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.289, allocations: 91.83 kB / 450.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004194/0.2932, allocations: 2.698 MB / 453.3 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.2937, allocations: 83.66 kB / 453.4 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.2937, allocations: 20 kB / 453.4 MB, free: 148 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {(2,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002824/0.294, allocations: 177.7 kB / 453.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.733e-05/0.2941, allocations: 47.72 kB / 453.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.2942, allocations: 60.89 kB / 453.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2942, allocations: 4 kB / 453.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2942, allocations: 4 kB / 453.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.2942, allocations: 3.984 kB / 453.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/0.2965, allocations: 1.226 MB / 454.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2965, allocations: 4 kB / 454.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000208/0.2967, allocations: 43.97 kB / 454.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005285/0.2972, allocations: 183.7 kB / 455.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.2972, allocations: 11.94 kB / 455.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004033/0.3013, allocations: 2.688 MB / 457.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.3013, allocations: 4 kB / 457.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001847/0.3031, allocations: 0.9026 MB / 458.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.998e-05/0.3032, allocations: 55.61 kB / 458.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.16e-05/0.3033, allocations: 8 kB / 458.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.3036, allocations: 48.03 kB / 458.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.3037, allocations: 31.88 kB / 458.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.3037, allocations: 12 kB / 458.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000364/0.3041, allocations: 307.1 kB / 459.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3041, allocations: 0 / 459.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006191/0.3047, allocations: 183.7 kB / 459.4 MB, free: 9.973 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002302/0.307, allocations: 1.47 MB / 460.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.3082, allocations: 0.5564 MB / 461.4 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.3082, allocations: 4 kB / 461.4 MB, free: 7.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006327/0.3088, allocations: 375.2 kB / 461.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004932/0.3093, allocations: 81.8 kB / 461.8 MB, free: 7.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007916/0.3172, allocations: 4.882 MB / 466.7 MB, free: 2.375 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.3177, allocations: 0.8672 MB / 467.6 MB, free: 1.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.318, allocations: 52.53 kB / 467.6 MB, free: 1.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.3182, allocations: 183.4 kB / 467.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3182, allocations: 0 / 467.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04478/0.363, allocations: 12.6 MB / 480.4 MB, free: 4.883 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/12.98, allocations: 6.359 kB / 480.4 MB, free: 4.883 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable opAmp.v_out in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv. Warning: Get data of variable opAmp.v_out from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.5074087590001]